From 58227f65ca9903ab9ec0c93f85d7c2f902bde0eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 17 May 2007 06:17:29 +0000 Subject: [PATCH] compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xml/xml.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.45.2