Use nl_langinfo() in wxUILocaleImplUnix::GetInfo()

This function can be used for all GetInfo() items, so using it is
simpler than the code in the Unix version of wxLocale::GetInfo() which
uses either it or localeconv(), and there should be no real drawbacks to
using it nowadays as it should be available everywhere.

No real changes yet.
This commit is contained in:
Vadim Zeitlin
2021-08-30 00:17:26 +02:00
parent 592e1678ce
commit 45ffc40fc2
3 changed files with 66 additions and 45 deletions

View File

@@ -30,4 +30,7 @@ inline wxString ExtractNotLang(const wxString& langFull)
const char *wxSetlocaleTryAll(int c, const wxString& lc);
// Extract date format from D_T_FMT value.
wxString wxGetDateFormatOnly(const wxString& fmt);
#endif // _WX_UNIX_PRIVATE_UILOCALE_H_