Commit 38a90d28 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Same fix for non-constant string.

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.
parent fe33d793
...@@ -69,7 +69,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 ); ...@@ -69,7 +69,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
#if wxUSE_UNICODE #if wxUSE_UNICODE
# define wxU(ansi) wxString(ansi, wxConvLocal) # define wxU(ansi) wxString(ansi, wxConvLocal)
#else #else
# define wxU(ansi) ansi # define wxU(ansi) (ansi)
#endif #endif
#define ISUTF8 0 #define ISUTF8 0
...@@ -77,11 +77,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 ); ...@@ -77,11 +77,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
/* wxL2U (locale to unicode) is used to convert ansi strings to unicode /* wxL2U (locale to unicode) is used to convert ansi strings to unicode
* strings (wchar_t) */ * strings (wchar_t) */
#if wxUSE_UNICODE #define wxL2U(ansi) wxU(ansi)
# define wxL2U(ansi) wxString(ansi, *wxConvCurrent)
#else
# define wxL2U(ansi) ansi
#endif
#define WRAPCOUNT 80 #define WRAPCOUNT 80
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment