From: Václav Slavík Date: Thu, 17 May 2007 06:17:29 +0000 (+0000) Subject: compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/58227f65ca9903ab9ec0c93f85d7c2f902bde0eb compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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;