From: tsteven4 Date: Sat, 4 Nov 2017 20:48:53 +0000 (-0600) Subject: fix mangled argument handling on none utf-8 unix machines. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~115^2~1^2~227^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ae06bb12e35dd96183748529f2037e8344a5af68;p=gpsbabel.git fix mangled argument handling on none utf-8 unix machines. --- diff --git a/main.cc b/main.cc index 222b9cf20..3ab7ffb88 100644 --- a/main.cc +++ b/main.cc @@ -242,9 +242,8 @@ main(int argc, char* argv[]) // For example, this will get the QTextCodec::codecForLocale set // correctly. QCoreApplication app(argc, argv); -#ifdef __WIN32__ // Use QCoreApplication::arguments() to process the command line and replace - // argv[] strings with UTF-8 versions; this is needed on Windows only. + // argv[] strings with UTF-8 versions. QVector qargv; { QStringList qargs = QCoreApplication::arguments(); @@ -255,7 +254,6 @@ main(int argc, char* argv[]) argv[i] = qargv[i].data(); } } -#endif (void) new gpsbabel::UsAsciiCodec(); /* make sure a US-ASCII codec is available */