pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src system.cxx,1.17,1.18


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src system.cxx,1.17,1.18
Date: 16 Apr 2003 10:00:34 -0000

Update of /var/lib/cvs/Games/Pingus/src
In directory dark:/tmp/cvs-serv982

Modified Files:
        system.cxx 
Log Message:
- added LC_MESSAGES workaround

Index: system.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/system.cxx,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- system.cxx  13 Apr 2003 23:33:19 -0000      1.17
+++ system.cxx  16 Apr 2003 10:00:32 -0000      1.18
@@ -343,6 +343,9 @@
 std::string
 System::get_language()
 {
+#ifdef WIN32
+  return default_language;
+#else
   char* lang_c = setlocale(LC_MESSAGES, NULL);
   std::string lang;
   
@@ -353,6 +356,7 @@
     return default_language;
   else 
     return lang.substr(0, 2);
+#endif
 }
 
 std::string





reply via email to

[Prev in Thread] Current Thread [Next in Thread]