pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src pingus_main.cxx,1.74,1.75


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src pingus_main.cxx,1.74,1.75
Date: 11 Apr 2003 21:15:42 -0000

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

Modified Files:
        pingus_main.cxx 
Log Message:
- added ß character to fonts
- added setlocale(LC_CTYPE,), without it we will get german, but without umlauts

Index: pingus_main.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/pingus_main.cxx,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- pingus_main.cxx     11 Apr 2003 16:51:15 -0000      1.74
+++ pingus_main.cxx     11 Apr 2003 21:15:40 -0000      1.75
@@ -615,16 +615,28 @@
 #ifdef HAVE_GETTEXT
   if (maintainer_mode)
     std::cout << "Setting gettext path to: " << path_manager.get_base_path () 
+ "/../../locale" << std::endl;
-  const char* ret = setlocale (LC_MESSAGES, "");
-  if (ret == NULL)
+  const char* ret;
+
+  if ((ret = setlocale (LC_MESSAGES, "")) == NULL)
     {
-      std::cout << "ERROR: setlocale failed!" <<  std::endl;
+      std::cout << "ERROR: setlocale LC_MESSAGES failed!" <<  std::endl;
+    }
+  else
+    {
+      if (maintainer_mode)
+        std::cout << "setlocale returned '" << ret << "'" << std::endl;
+    }
+
+  if ((ret = setlocale (LC_CTYPE, "")) == NULL)
+    {
+      std::cout << "ERROR: setlocale LC_CTYPE failed!" <<  std::endl;
     }
   else
     {
       if (maintainer_mode)
         std::cout << "setlocale returned '" << ret << "'" << std::endl;
     }
+
   bindtextdomain (PACKAGE, (path_manager.get_base_path () + 
"/../../locale/").c_str());
   // We use another LOCALEDIR to make static binaries possible
   // bindtextdomain (PACKAGE, LOCALEDIR);





reply via email to

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