diff --git a/src/unix/uilocale.cpp b/src/unix/uilocale.cpp index 5ae37d3c29..a46d864e11 100644 --- a/src/unix/uilocale.cpp +++ b/src/unix/uilocale.cpp @@ -352,7 +352,7 @@ wxUILocaleImplUnix::InitLocaleNameAndCodeset() const // If extended locale support is not available, we need to temporarily // switch the global locale to the one we use. #ifndef HAVE_LOCALE_T - TempDefautLocaleSetter setDefautLocale(LC_CTYPE); + TempDefautLocaleSetter setDefautLocale(LC_CTYPE, m_locId.GetName()); #endif #ifdef _NL_LOCALE_NAME @@ -400,6 +400,8 @@ wxUILocaleImplUnix::GetLangInfo(nl_item item) const // We assume that we have nl_langinfo_l() if we have locale_t. if ( m_locale ) return nl_langinfo_l(item, m_locale); +#else + TempDefautLocaleSetter setDefautLocale(LC_CTYPE, m_locId.GetName()); #endif // HAVE_LOCALE_T return nl_langinfo(item);