]> git.saurik.com Git - wxWidgets.git/commit
Don't call setlocale("") on startup by default any longer.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Nov 2012 13:46:50 +0000 (13:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Nov 2012 13:46:50 +0000 (13:46 +0000)
commitb51014176a539bf0c0e5058910c5a7fcc7a7d0a5
tree70a89949d4d64a6af05b3699133d5f34510d4d8b
parent40df8a51f2d922237dd11a5ff14532ea744027b7
Don't call setlocale("") on startup by default any longer.

This undoes the changes of r44773 because calling setlocale() resulted in C
locale being set differently from C++ locale which was confusing and led to
huge slowdowns in any code using std::stream with at least MinGW. And setting
the C++ locale to be the same, as r72719 tried to do, doesn't seem to be
practical as it results in immediate crashes under OS X and MinGW when used
under XP.

Do provide wxApp::SetCLocale() helper to explicitly do what was previously
done implicitly, even though currently it is a trivial wrapper for setlocale()
and we don't even need to call gtk_set_locale() as it has never done anything
else and is deprecated since GTK+ 2.24.

Closes #14780.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
include/wx/app.h
include/wx/apptrait.h
include/wx/unix/apptrait.h
interface/wx/app.h
src/common/appbase.cpp
src/gtk/app.cpp
src/gtk/utilsgtk.cpp
src/gtk1/utilsgtk.cpp