From: Stefan Csomor Date: Thu, 22 Jan 2004 18:52:11 +0000 (+0000) Subject: setting the default locale during startup X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d9d19e7545591fad3ea005df1ff3a84c9f68d822 setting the default locale during startup git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/app.cpp b/src/mac/app.cpp index 3c0a395135..f7e96bddfb 100644 --- a/src/mac/app.cpp +++ b/src/mac/app.cpp @@ -647,6 +647,11 @@ bool wxApp::Initialize(int& argc, wxChar **argv) if ( !wxAppBase::Initialize(argc, argv) ) return false; +#if wxUSE_INTL + wxFont::SetDefaultEncoding(wxLocale::GetSystemEncoding()); +#endif + + wxWinMacWindowList = new wxList(wxKEY_INTEGER); wxWinMacControlList = new wxList(wxKEY_INTEGER); diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index 3c0a395135..f7e96bddfb 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -647,6 +647,11 @@ bool wxApp::Initialize(int& argc, wxChar **argv) if ( !wxAppBase::Initialize(argc, argv) ) return false; +#if wxUSE_INTL + wxFont::SetDefaultEncoding(wxLocale::GetSystemEncoding()); +#endif + + wxWinMacWindowList = new wxList(wxKEY_INTEGER); wxWinMacControlList = new wxList(wxKEY_INTEGER);