From: Mattia Barbon Date: Sat, 30 Jul 2005 17:24:32 +0000 (+0000) Subject: Initialize Xt locale handling. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9d02485ed9108cb730c7ac5c52b568835e6cc12f?ds=inline Initialize Xt locale handling. Set the correct default font encoding on startup. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/motif/app.cpp b/src/motif/app.cpp index fa41cfebee..a28cc95f91 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -97,6 +97,10 @@ bool wxApp::Initialize(int& argc, wxChar **argv) wxWidgetHashTable = new wxHashTable(wxKEY_INTEGER); +#if wxUSE_INTL + wxFont::SetDefaultEncoding(wxLocale::GetSystemEncoding()); +#endif + return true; } @@ -189,6 +193,7 @@ bool wxApp::OnInitGui() if( !wxAppBase::OnInitGui() ) return false; + XtSetLanguageProc(NULL, NULL, NULL); XtToolkitInitialize() ; wxTheApp->m_appContext = (WXAppContext) XtCreateApplicationContext(); XtAppSetFallbackResources((XtAppContext) wxTheApp->m_appContext, fallbackResources);