git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13984
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// We must build conversion table for expat. The easiest way to do so
// is to let wxCSConv convert as string containing all characters to
// wide character representation:
- wxCSConv conv(name);
+ wxCSConv conv(wxString(name, wxConvLibc));
char mbBuf[255];
wchar_t wcBuf[255];
size_t i;
{
if (str.IsEmpty()) return;
#if wxUSE_UNICODE
- const wxW2MBbuf *buf = str.mb_str(convFile ? *convFile : wxConvUTF8);
+ const wxWX2MBbuf buf(str.mb_str(convFile ? *convFile : wxConvUTF8));
stream.Write((const char*)buf, strlen((const char*)buf));
#else
if ( convFile == NULL )
// We must build conversion table for expat. The easiest way to do so
// is to let wxCSConv convert as string containing all characters to
// wide character representation:
- wxCSConv conv(name);
+ wxCSConv conv(wxString(name, wxConvLibc));
char mbBuf[255];
wchar_t wcBuf[255];
size_t i;
{
if (str.IsEmpty()) return;
#if wxUSE_UNICODE
- const wxW2MBbuf *buf = str.mb_str(convFile ? *convFile : wxConvUTF8);
+ const wxWX2MBbuf buf(str.mb_str(convFile ? *convFile : wxConvUTF8));
stream.Write((const char*)buf, strlen((const char*)buf));
#else
if ( convFile == NULL )