From 9dea50fc65084eac06979fb25d6c40b936c68db4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 18 Sep 1999 18:02:58 +0000 Subject: [PATCH] setlocale() argument corrected git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/intl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/intl.cpp b/src/common/intl.cpp index f21ab61887..245ebe36bb 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -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);