fixing 1877182
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -179,7 +179,11 @@ static void ConvertArgsToUnicode(int argc, char **argv)
|
|||||||
int wargc = 0;
|
int wargc = 0;
|
||||||
for ( int i = 0; i < argc; i++ )
|
for ( int i = 0; i < argc; i++ )
|
||||||
{
|
{
|
||||||
|
#ifdef __DARWIN__
|
||||||
|
wxWCharBuffer buf(wxConvFileName->cMB2WX(argv[i]));
|
||||||
|
#else
|
||||||
wxWCharBuffer buf(wxConvLocal.cMB2WX(argv[i]));
|
wxWCharBuffer buf(wxConvLocal.cMB2WX(argv[i]));
|
||||||
|
#endif
|
||||||
if ( !buf )
|
if ( !buf )
|
||||||
{
|
{
|
||||||
wxLogWarning(_("Command line argument %d couldn't be converted to Unicode and will be ignored."),
|
wxLogWarning(_("Command line argument %d couldn't be converted to Unicode and will be ignored."),
|
||||||
|
Reference in New Issue
Block a user