X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34a34b020f1c8defacb299a0fa5c480fa65b8597..caa2490c0fb8053b1d416117a9619695d75af9e4:/src/gtk1/app.cpp?ds=inline diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 6b9ddf198c..dbe83542dc 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -606,6 +606,12 @@ bool wxApp::Initialize(int& argc, wxChar **argv) wxConvCurrent = (wxMBConv*) NULL; #endif // wxUSE_WCHAR_T/!wxUSE_WCHAR_T +#ifdef __WXGTK20__ + m_convBrokenFileNames = new wxConvBrokenFileNames; + m_oldConvFileName = wxConvFileName; + wxConvFileName = m_convBrokenFileNames; +#endif + #if wxUSE_UNICODE // gtk_init() wants UTF-8, not wchar_t, so convert int i; @@ -680,6 +686,11 @@ bool wxApp::Initialize(int& argc, wxChar **argv) void wxApp::CleanUp() { +#ifdef __WXGTK20__ + delete m_convBrokenFileNames; + wxConvFileName = m_oldConvFileName; +#endif + gdk_threads_leave(); wxAppBase::CleanUp();