attempted Unicode fixes for BC++

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-12-13 15:51:01 +00:00
parent 864e8bd0fc
commit 191ab39aee
2 changed files with 54 additions and 266 deletions

View File

@@ -189,18 +189,11 @@ WXDLLEXPORT wxChar * wxStrtok(wxChar *psz, const wxChar *delim, wxChar **save_pt
#endif
#ifndef wxSetlocale
WXDLLEXPORT wxChar * wxSetlocale(int category, const wxChar *locale)
WXDLLEXPORT wxWCharBuffer wxSetlocale(int category, const wxChar *locale)
{
#ifdef wxUSE_THREADS
wxASSERT_MSG( wxThread::IsMain(), _T("wxSetlocale() is not MT-safe") );
#endif
static wxWCharBuffer s_wzLocale;
char *localeOld = setlocale(category, wxConvLibc.cWX2MB(locale));
s_wzLocale = wxConvLibc.cMB2WC(localeOld);
return s_wzLocale;
return wxWCharBuffer(wxConvLibc.cMB2WC(localeOld));
}
#endif