wesnoth-cvs-commits
[Top][All Lists]
Advanced

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

[Wesnoth-cvs-commits] wesnoth/src gettext.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src gettext.cpp
Date: Mon, 28 Mar 2005 05:04:21 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    05/03/28 10:04:21

Modified files:
        src            : gettext.cpp 

Log message:
        Force codeset rebinding everytime a string has to been translated. 
Otherwise binary serialized strings may not have a codeset-binded textdomain, 
since they don't go through the parser.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/gettext.cpp.diff?tr1=1.9&tr2=1.10&r1=text&r2=text

Patches:
Index: wesnoth/src/gettext.cpp
diff -u wesnoth/src/gettext.cpp:1.9 wesnoth/src/gettext.cpp:1.10
--- wesnoth/src/gettext.cpp:1.9 Sun Mar 27 23:06:17 2005
+++ wesnoth/src/gettext.cpp     Mon Mar 28 10:04:21 2005
@@ -25,6 +25,7 @@
 
 const char* dsgettext (const char * domainname, const char *msgid)
 {
+       bind_textdomain_codeset(domainname, "UTF-8");
        const char *msgval = dgettext (domainname, msgid);
        if (msgval == msgid) {
                msgval = strrchr (msgid, '^');




reply via email to

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