From 9d02485ed9108cb730c7ac5c52b568835e6cc12f Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sat, 30 Jul 2005 17:24:32 +0000 Subject: [PATCH] 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 --- src/motif/app.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.50.0