X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a10ea8b13fd0851e71e6fa5ebbe5b93933be11e..497a2d6d54e8848045a6ee49439d20d3677a9835:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 548776f481..8d11807aec 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1795,13 +1795,14 @@ bool wxLocale::Init(int language, int flags) return false; } #else + wxUnusedVar(flags); return false; #define WX_NO_LOCALE_SUPPORT #endif #ifndef WX_NO_LOCALE_SUPPORT wxChar *szLocale = retloc ? wxStrdup(retloc) : NULL; - bool ret = Init(name, canonical, retloc, + bool ret = Init(name, canonical, szLocale, (flags & wxLOCALE_LOAD_DEFAULT) != 0, (flags & wxLOCALE_CONV_ENCODING) != 0); free(szLocale); @@ -1810,7 +1811,7 @@ bool wxLocale::Init(int language, int flags) m_language = lang; return ret; -#endif +#endif // !WX_NO_LOCALE_SUPPORT } @@ -2394,7 +2395,7 @@ wxFontEncoding wxLocale::GetSystemEncoding() // on some modern Linux systems (RedHat 8) the default system locale // is UTF8 -- but it isn't supported by wxGTK in ANSI build at all so // don't even try to use it in this case -#if !wxUSE_UNICODE && defined(__WXGTK__) +#if !wxUSE_UNICODE && (defined(__WXGTK__) || defined(__WXMOTIF__)) if ( enc == wxFONTENCODING_UTF8 ) { // the most similar supported encoding...