+ if (len > 0)
+ {
+#if wxUSE_UNICODE
+ char *tmp = new char[len + 1];
+ m_input->Read(tmp, len);
+ tmp[len] = 0;
+ wxString ret( (const wxChar*) m_conv.cMB2WX(tmp) );
+ delete[] tmp;
+#else
+ wxString ret;
+ m_input->Read( ret.GetWriteBuf(len), len);
+ ret.UngetWriteBuf();
+#endif
+ return ret;
+ }
+ else
+ return wxEmptyString;