]> git.sesse.net Git - vlc/commitdiff
Same fix for non-constant string.
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 8 Mar 2005 17:31:31 +0000 (17:31 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 8 Mar 2005 17:31:31 +0000 (17:31 +0000)
The playlist works fine again (with ASCII/Latin locale charset).
When in UTF8, it might be a good idea to check for invalid bytes
sequences and replace them with question mark - at the moment
wxWidgets still leave the whole text blank which result in blank
playlist item in the playlist.

modules/gui/wxwindows/wxwindows.h

index 210f38254edb015b317b7d99050731bfce97afb1..5fabab2f63254bd07936456bf179de70f22bdd5a 100644 (file)
@@ -69,7 +69,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
 #if wxUSE_UNICODE
 #   define wxU(ansi) wxString(ansi, wxConvLocal)
 #else
-#   define wxU(ansi) ansi
+#   define wxU(ansi) (ansi)
 #endif
 #define ISUTF8 0
 
@@ -77,11 +77,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
 
 /* wxL2U (locale to unicode) is used to convert ansi strings to unicode
  * strings (wchar_t) */
-#if wxUSE_UNICODE
-#   define wxL2U(ansi) wxString(ansi, *wxConvCurrent)
-#else
-#   define wxL2U(ansi) ansi
-#endif
+#define wxL2U(ansi) wxU(ansi)
 
 #define WRAPCOUNT 80