Check for G_FILENAME_ENCODING=@locale case insensitively.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2006-11-27 09:50:36 +00:00
parent 2b041d4673
commit 7c8ec1005f

View File

@@ -508,7 +508,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
// 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"))
if (encName.CmpNoCase(_T("@locale")) == 0)
encName.clear();
encName.MakeUpper();
#if wxUSE_INTL