]> git.sesse.net Git - vlc/commitdiff
Fix conversion from locale to wxWidgets' Unicode
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 8 Mar 2005 17:11:08 +0000 (17:11 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 8 Mar 2005 17:11:08 +0000 (17:11 +0000)
(the documentation for wxWidgets 2.5.3 is wrong :
 wxConvCurrent (which does not work) does not point
 to wxConvLibc nor wxConvLocal (which both work))

It is now possible to use wxvlc with non UTF-8 locale.
Previously, any text item with non-ASCII character in it would be
blank.

modules/gui/wxwindows/wxwindows.h

index abb903334089592dd02512eeb23cba1e8562a1eb..210f38254edb015b317b7d99050731bfce97afb1 100644 (file)
@@ -67,7 +67,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
 
 #else // ENABLE_NLS && ENABLE_UTF8
 #if wxUSE_UNICODE
-#   define wxU(ansi) wxString(ansi, *wxConvCurrent)
+#   define wxU(ansi) wxString(ansi, wxConvLocal)
 #else
 #   define wxU(ansi) ansi
 #endif