From 8ca8f1340c7d688651a963a21b18725e9ac9dc1f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 20 Nov 2002 01:12:36 +0000 Subject: [PATCH] Fixed compilation error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/intl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/intl.cpp b/src/common/intl.cpp index dd2a8fa276..12d5c13bb6 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -706,7 +706,7 @@ bool wxLocale::Init(int language, int flags) return FALSE; } #elif defined(__WIN32__) - wxMB2WXbuf retloc(wxT("C")); + wxMB2WXbuf retloc = wxT("C"); if (language != wxLANGUAGE_DEFAULT) { if (info->WinLang == 0) @@ -1256,7 +1256,7 @@ wxString wxLocale::GetSystemEncodingName() char *alang = nl_langinfo(CODESET); setlocale(LC_CTYPE, oldLocale); free(oldLocale); - + if ( alang ) { // 7 bit ASCII encoding has several alternative names which we should