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 */
|
/* static */
|
||||||
wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat)
|
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();
|
lconv * const lc = localeconv();
|
||||||
if ( !lc )
|
if ( !lc )
|
||||||
return wxString();
|
return wxString();
|
||||||
@@ -1940,7 +1938,7 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat)
|
|||||||
default:
|
default:
|
||||||
wxFAIL_MSG( "unknown wxLocaleInfo value" );
|
wxFAIL_MSG( "unknown wxLocaleInfo value" );
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return wxString();
|
return wxString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user