Use Unicode command line when not using wmain() under Windows
While we use wmain() for the compilers that provide it since the changes of
bfa78c63b9, we still didn't handle Unicode
command line arguments not representable in the current Windows code page
correctly when using other compilers (e.g. MinGW).
Now use Win32 ::GetCommandLine() function for them and parse the command line
ourselves instead of relying on non-Unicode-friendly main() arguments which
can't represent arbitrary Unicode strings when not using UTF-8 (which is never
the case under Windows).
This commit is contained in:
@@ -54,7 +54,7 @@ extern int WXDLLIMPEXP_BASE wxEntry(int& argc, char **argv);
|
||||
|
||||
// Under Windows we define additional wxEntry() overloads with signature
|
||||
// compatible with WinMain() and not the traditional main().
|
||||
#if wxUSE_GUI && defined(__WINDOWS__)
|
||||
#ifdef __WINDOWS__
|
||||
#include "wx/msw/init.h"
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user