X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6cb12871f4b31ef654f19dc8c7269cea3c01651..66160760e1b333dd73f4c32cb6549bbc0461b67e:/src/xml/xml.cpp diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index 16ced8c8f6..e9f3e92df7 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -558,7 +558,8 @@ static int UnknownEncodingHnd(void * WXUNUSED(encodingHandlerData), // 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); + wxString str(name, wxConvLibc); + wxCSConv conv(str.c_str()); char mbBuf[2]; wchar_t wcBuf[10]; size_t i;