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:
parent
90a53a3aed
commit
9dea50fc65
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user