git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38587
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- // note that we must not write the trailing NUL here
wxCharBuffer buffer = m_conv->cWC2MB(out, out.length(), &len);
wxCharBuffer buffer = m_conv->cWC2MB(out, out.length(), &len);
- m_output.Write(buffer, len + 1 - m_conv->GetMBNulLen());
+ m_output.Write(buffer, len);
#else
m_output.Write(out.c_str(), out.length() );
#endif
#else
m_output.Write(out.c_str(), out.length() );
#endif