added wxAppTraits::SetLocale() and call it during wxApp initialization in all ports, not just wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -146,6 +146,10 @@ wxAppConsole::~wxAppConsole()
|
||||
|
||||
bool wxAppConsole::Initialize(int& argcOrig, wxChar **argvOrig)
|
||||
{
|
||||
#if wxUSE_INTL
|
||||
GetTraits()->SetLocale();
|
||||
#endif // wxUSE_INTL
|
||||
|
||||
// remember the command line arguments
|
||||
argc = argcOrig;
|
||||
argv = argvOrig;
|
||||
@@ -156,7 +160,7 @@ bool wxAppConsole::Initialize(int& argcOrig, wxChar **argvOrig)
|
||||
// the application name is, by default, the name of its executable file
|
||||
wxFileName::SplitPath(argv[0], NULL, &m_appName, NULL);
|
||||
}
|
||||
#endif
|
||||
#endif // !__WXPALMOS__
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -503,6 +507,11 @@ GSocketGUIFunctionsTable* wxConsoleAppTraitsBase::GetSocketGUIFunctionsTable()
|
||||
// wxAppTraits
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxAppTraitsBase::SetLocale()
|
||||
{
|
||||
setlocale(LC_ALL, "");
|
||||
}
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
|
||||
bool wxAppTraitsBase::ShowAssertDialog(const wxString& msgOriginal)
|
||||
|
Reference in New Issue
Block a user