]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxXmlResource::GetText() in ANSI build to correctly convert the string to curre...
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 14 Jan 2008 22:36:42 +0000 (22:36 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 14 Jan 2008 22:36:42 +0000 (22:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xmlres.cpp

index ab9ebb468256c0b3e990def2b2dba0953fdb4734..466faa9870f12e8290595f976ec1111bad030441 100644 (file)
@@ -967,7 +967,7 @@ wxString wxXmlResourceHandler::GetText(const wxString& param, bool translate)
 #else
             // The string is internally stored as UTF-8, we have to convert
             // it into system's default encoding so that it can be displayed:
-            return wxString(str2.mb_str(wxConvUTF8), wxConvLocal);
+            return wxString(str2.wc_str(wxConvUTF8), wxConvLocal);
 #endif
         }
     }