From: Václav Slavík Date: Sat, 13 Jan 2001 12:56:30 +0000 (+0000) Subject: fixed stupid bug in LCID->locale string translation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/88961c3ecae1afa141c201dc69d51174a55b1ea8 fixed stupid bug in LCID->locale string translation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 7b9eb1135c..cba698cb80 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -678,8 +678,8 @@ bool wxLocale::Init(int language, int flags) buffer[0] = wxT('\0'); GetLocaleInfo(lcid, LOCALE_SENGLANGUAGE, buffer, 256); locale << buffer; - buffer[0] = wxT('\0'); - GetLocaleInfo(lcid, LOCALE_SENGCOUNTRY, buffer, 256); + if (GetLocaleInfo(lcid, LOCALE_SENGCOUNTRY, buffer, 256) > 0) + locale << wxT("_") << buffer; } if (locale.IsEmpty()) {