]> git.saurik.com Git - wxWidgets.git/commitdiff
Support comma separated list in G_FILENAME_ENCODING
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Tue, 26 Jul 2005 14:16:29 +0000 (14:16 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Tue, 26 Jul 2005 14:16:29 +0000 (14:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/app.cpp
src/gtk1/app.cpp

index 4d25eb73def0d8591edb22c7be25bf22ea9f32c2..a75aabe611f1c84fbe7e81b293db5dd9afc6e333 100644 (file)
@@ -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();
index 4d25eb73def0d8591edb22c7be25bf22ea9f32c2..a75aabe611f1c84fbe7e81b293db5dd9afc6e333 100644 (file)
@@ -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();