[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src system.cxx,1.15,1.16
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src system.cxx,1.15,1.16 |
Date: |
13 Apr 2003 12:30:12 -0000 |
Update of /var/lib/cvs/Games/Pingus/src
In directory dark:/tmp/cvs-serv24519
Modified Files:
system.cxx
Log Message:
added handling for setlocale returning NULL
Index: system.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/system.cxx,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- system.cxx 13 Apr 2003 10:34:55 -0000 1.15
+++ system.cxx 13 Apr 2003 12:30:10 -0000 1.16
@@ -343,7 +343,11 @@
std::string
System::get_language()
{
- std::string lang = setlocale(LC_MESSAGES, NULL);
+ char* lang_c = setlocale(LC_MESSAGES, NULL);
+ std::string lang;
+
+ if (lang_c)
+ lang = lang_c;
if (lang.empty() || lang == "C")
return default_language;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src system.cxx,1.15,1.16,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/intl ChangeLog,1.1,1.2 Makefile.in,1.1,1.2 VERSION,1.1,1.2 bindtextdom.c,1.1,1.2 dcgettext.c,1.1,1.2 dgettext.c,1.1,1.2 explodename.c,1.1,1.2 finddomain.c,1.1,1.2 gettext.c,1.1,1.2 gettextP.h,1.1,1.2 hash-string.h,1.1,1.2 intl-compat.c,1.1,1.2 l10nflist.c,1.1,1.2 loadinfo.h,1.1,1.2 loadmsgcat.c,1.1,1.2 localealias.c,1.1,1.2 textdomain.c,1.1,1.2
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus README.languages,1.2,1.3
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/intl ChangeLog,1.1,1.2 Makefile.in,1.1,1.2 VERSION,1.1,1.2 bindtextdom.c,1.1,1.2 dcgettext.c,1.1,1.2 dgettext.c,1.1,1.2 explodename.c,1.1,1.2 finddomain.c,1.1,1.2 gettext.c,1.1,1.2 gettextP.h,1.1,1.2 hash-string.h,1.1,1.2 intl-compat.c,1.1,1.2 l10nflist.c,1.1,1.2 loadinfo.h,1.1,1.2 loadmsgcat.c,1.1,1.2 localealias.c,1.1,1.2 textdomain.c,1.1,1.2
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus README.languages,1.2,1.3
- Index(es):