]> git.saurik.com Git - wxWidgets.git/commitdiff
setting the default locale during startup
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 22 Jan 2004 18:52:11 +0000 (18:52 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 22 Jan 2004 18:52:11 +0000 (18:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/app.cpp
src/mac/carbon/app.cpp

index 3c0a3951354cd5960de889c7077aa1c086da0aa8..f7e96bddfb3db11a931fec9ceb68aad8d7fd6605 100644 (file)
@@ -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);
 
index 3c0a3951354cd5960de889c7077aa1c086da0aa8..f7e96bddfb3db11a931fec9ceb68aad8d7fd6605 100644 (file)
@@ -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);