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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user