Fixed Unicode breakage

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2004-02-08 23:22:01 +00:00
parent 518c393914
commit 1e8bd6b2ae

View File

@ -2521,7 +2521,7 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat)
case wxLOCALE_DECIMAL_POINT: case wxLOCALE_DECIMAL_POINT:
count = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, buffer, 256); count = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, buffer, 256);
if (!count) if (!count)
str << "."; str << wxT(".");
else else
str << buffer; str << buffer;
break; break;
@ -2529,20 +2529,20 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat)
case wxSYS_LIST_SEPARATOR: case wxSYS_LIST_SEPARATOR:
count = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLIST, buffer, 256); count = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLIST, buffer, 256);
if (!count) if (!count)
str << ","; str << wxT(",");
else else
str << buffer; str << buffer;
break; break;
case wxSYS_LEADING_ZERO: // 0 means no leading zero, 1 means leading zero case wxSYS_LEADING_ZERO: // 0 means no leading zero, 1 means leading zero
count = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ILZERO, buffer, 256); count = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ILZERO, buffer, 256);
if (!count) if (!count)
str << "0"; str << wxT("0");
else else
str << buffer; str << buffer;
break; break;
#endif #endif
default: default:
wxFAIL_MSG("Unknown System String !"); wxFAIL_MSG(wxT("Unknown System String !"));
} }
return str; return str;
} }