[Scummvm-cvs-logs] SF.net SVN: scummvm:[50354] scummvm/trunk/common/translation.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Jun 27 01:01:12 CEST 2010


Revision: 50354
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50354&view=rev
Author:   lordhoto
Date:     2010-06-26 23:01:12 +0000 (Sat, 26 Jun 2010)

Log Message:
-----------
Add some explanation why we can not just use setlocale on Win32.

Modified Paths:
--------------
    scummvm/trunk/common/translation.cpp

Modified: scummvm/trunk/common/translation.cpp
===================================================================
--- scummvm/trunk/common/translation.cpp	2010-06-26 22:51:13 UTC (rev 50353)
+++ scummvm/trunk/common/translation.cpp	2010-06-26 23:01:12 UTC (rev 50354)
@@ -53,6 +53,9 @@
 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];
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list