Commit 500d3e3b authored by Mark Moriarty's avatar Mark Moriarty

Attempt to fix wxwidgets file open and Messages display.

parent 73d74a1b
...@@ -97,7 +97,7 @@ static inline char *wxFromLocale (const wxString& string) ...@@ -97,7 +97,7 @@ static inline char *wxFromLocale (const wxString& string)
{ {
#if defined( wxUSE_UNICODE ) #if defined( wxUSE_UNICODE )
# if defined( WIN32 ) # if defined( WIN32 )
return FromWide ((const wchar_t *)string.c_str()); return (char *) wxConvCurrent->cWX2MB(string);
# define wxLocaleFree free # define wxLocaleFree free
# else # else
return FromLocale (string.mb_str()); return FromLocale (string.mb_str());
......
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