CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <[EMAIL PROTECTED]> 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