]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing 1877182
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 22 Jan 2008 14:02:37 +0000 (14:02 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 22 Jan 2008 14:02:37 +0000 (14:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/init.cpp

index 326ef09333b08dbe79f4a7ea13bb462481a7ff4c..adb68c947c9f1466c3dab4b37dd6065b4dc95658 100644 (file)
@@ -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."),