Support comma separated list in G_FILENAME_ENCODING

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell 2005-07-26 14:16:29 +00:00
parent c40158e40b
commit 29c326b745
2 changed files with 2 additions and 0 deletions

View 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();

View 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();