X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd7641ef10e8abdb37bca41740c047eef1846400..95e33ad86938722434562519209552ed1b5b70c2:/src/gtk1/app.cpp diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 4d25eb73de..a75aabe611 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -616,6 +616,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv) // (1) this variable exists for the sole purpose of specifying the encoding // of the filenames for GTK+ programs, so use it if it is set wxString encName(wxGetenv(_T("G_FILENAME_ENCODING"))); + encName = encName.BeforeFirst(_T(',')); if (encName == _T("@locale")) encName.clear(); encName.MakeUpper();