]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/app.cpp
fix PangoFontMetrics leak in GetCharHeight() (bug 1691180)
[wxWidgets.git] / 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;