X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60d876f374ccfec05f76290234125785298672d4..bdbcded6a32fc216283b9af03267e02fc915448f:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 97f5046281..e3f2208e59 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -2510,7 +2510,7 @@ bool wxLocale::AddCatalog(const wxChar *szDomain) #ifdef __WXMSW__ /* static */ -wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat) +wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory WXUNUSED(cat)) { wxString str; wxChar buffer[256]; @@ -2521,7 +2521,7 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat) case wxLOCALE_DECIMAL_POINT: count = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, buffer, 256); if (!count) - str << "."; + str << wxT("."); else str << buffer; break; @@ -2529,20 +2529,20 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat) case wxSYS_LIST_SEPARATOR: count = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLIST, buffer, 256); if (!count) - str << ","; + str << wxT(","); else str << buffer; break; case wxSYS_LEADING_ZERO: // 0 means no leading zero, 1 means leading zero count = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ILZERO, buffer, 256); if (!count) - str << "0"; + str << wxT("0"); else str << buffer; break; #endif default: - wxFAIL_MSG("Unknown System String !"); + wxFAIL_MSG(wxT("Unknown System String !")); } return str; } @@ -2559,9 +2559,11 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat) switch (index) { case wxLOCALE_THOUSANDS_SEP: - return locale_info->thousands_sep; + return wxString(locale_info->thousands_sep, + *wxConvCurrent); case wxLOCALE_DECIMAL_POINT: - return locale_info->decimal_point; + return wxString(locale_info->decimal_point, + *wxConvCurrent); default: return wxEmptyString; } @@ -2569,9 +2571,11 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat) switch (index) { case wxLOCALE_THOUSANDS_SEP: - return locale_info->mon_thousands_sep; + return wxString(locale_info->mon_thousands_sep, + *wxConvCurrent); case wxLOCALE_DECIMAL_POINT: - return locale_info->mon_decimal_point; + return wxString(locale_info->mon_decimal_point, + *wxConvCurrent); default: return wxEmptyString; }