X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7b00ae1724d46df3c6f6f7f38b6d9a67f84c01c..9617f65bccba124625546fd798e03e59d97b35c9:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index ee24148576..adb68c947c 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -27,12 +27,12 @@ #include "wx/app.h" #include "wx/filefn.h" #include "wx/log.h" - #include "wx/thread.h" #include "wx/intl.h" #include "wx/module.h" #endif #include "wx/init.h" +#include "wx/thread.h" #include "wx/ptr_scpd.h" #include "wx/except.h" @@ -179,7 +179,11 @@ static void ConvertArgsToUnicode(int argc, char **argv) int wargc = 0; for ( int i = 0; i < argc; i++ ) { +#ifdef __DARWIN__ + wxWCharBuffer buf(wxConvFileName->cMB2WX(argv[i])); +#else wxWCharBuffer buf(wxConvLocal.cMB2WX(argv[i])); +#endif if ( !buf ) { wxLogWarning(_("Command line argument %d couldn't be converted to Unicode and will be ignored."),