fixing 1877182

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2008-01-22 13:59:45 +00:00
parent a9cb1b92a3
commit 27aa92bfa0

View 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."),