Use localeconv() under Android, it's available there now

As of NDK21d, localeconv() is available under Android and can be used in
wxQt there.
This commit is contained in:
dsr
2021-01-25 21:44:17 -05:00
committed by Vadim Zeitlin
parent ddec29c338
commit 7d7c43c4c3

View File

@@ -1897,8 +1897,6 @@ wxString GetDateFormatFromLangInfo(wxLocaleInfo index)
/* static */
wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat)
{
// TODO: as of 2014 Android doesn't has complete locale support (use java api)
#if !(defined(__WXQT__) && defined(__ANDROID__))
lconv * const lc = localeconv();
if ( !lc )
return wxString();
@@ -1940,7 +1938,7 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat)
default:
wxFAIL_MSG( "unknown wxLocaleInfo value" );
}
#endif
return wxString();
}