aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2010-06-26 23:01:12 +0000
committerJohannes Schickel2010-06-26 23:01:12 +0000
commit4ec0827551a9448a2020ae9112b5b000ffd0d009 (patch)
treec4d525378b1580494fb983eab0b5d2ddad353b8e
parentb7ab6ca3f16b4371b1a99caf041d0998e1c10fa3 (diff)
downloadscummvm-rg350-4ec0827551a9448a2020ae9112b5b000ffd0d009.tar.gz
scummvm-rg350-4ec0827551a9448a2020ae9112b5b000ffd0d009.tar.bz2
scummvm-rg350-4ec0827551a9448a2020ae9112b5b000ffd0d009.zip
Add some explanation why we can not just use setlocale on Win32.
svn-id: r50354
-rw-r--r--common/translation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/translation.cpp b/common/translation.cpp
index bf37cbd953..3c5ff4d3c7 100644
--- a/common/translation.cpp
+++ b/common/translation.cpp
@@ -53,6 +53,9 @@ namespace Common {
TranslationManager::TranslationManager() {
#ifdef USE_DETECTLANG
#ifdef WIN32
+ // We can not use "setlocale" (at least not for MSVC builds), since it
+ // will return locales like: "English_USA.1252", thus we need a special
+ // way to determine the locale string for Win32.
char langName[9];
char ctryName[9];