]> git.saurik.com Git - wxWidgets.git/commitdiff
prevent GTK+ from changing locale when wxUSE_INTL==0, this makes the behaviour consis...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Mar 2007 13:29:36 +0000 (13:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Mar 2007 13:29:36 +0000 (13:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/app.cpp

index 406729696ff3da20f12764393457a41c31d50edb..fa47355e8fae1c4257dfa1bdbc17c9a1b60a1dee 100644 (file)
@@ -446,6 +446,12 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
 #else
     if (encName.empty())
         encName = _T("UTF-8");
+
+    // if wxUSE_INTL==0 it probably indicates that only "C" locale is supported
+    // by the program anyhow so prevent GTK+ from calling setlocale(LC_ALL, "")
+    // from gtk_init_check() as it does by default
+    gtk_disable_setlocale();
+
 #endif // wxUSE_INTL
     static wxConvBrokenFileNames fileconv(encName);
     wxConvFileName = &fileconv;