setlocale() argument corrected

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-09-18 18:02:58 +00:00
parent 90a53a3aed
commit 9dea50fc65

View File

@ -475,7 +475,10 @@ bool wxLocale::Init(const wxChar *szName,
// change current locale (default: same as long name)
if ( szLocale == NULL )
szLocale = szName;
{
// the argument to setlocale()
szLocale = szShort;
}
m_pszOldLocale = wxSetlocale(LC_ALL, szLocale);
if ( m_pszOldLocale == NULL )
wxLogError(_("locale '%s' can not be set."), szLocale);