[Top][All Lists]

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

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

From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src game.cpp
Date: Sun, 06 Feb 2005 16:31:27 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Changes by:     Guillaume Melquiond <address@hidden>    05/02/06 21:31:27

Modified files:
        src            : game.cpp 

Log message:
        One of the most frightening bug I ever encountered: it was allowing 
units to walk on the water on some computers. And I don't even want to think 
about all the other problems it could have caused: potentially any 
floating-point value ever read was wrong. It will annoy people who are 
expecting the damage EV to be displayed with a comma, but I consider it an 
acceptable loss given the extent of the issue it fixes. Let's hope it is 
sufficient for everybody.


Index: wesnoth/src/game.cpp
diff -u wesnoth/src/game.cpp:1.188 wesnoth/src/game.cpp:1.189
--- wesnoth/src/game.cpp:1.188  Sun Feb  6 10:40:12 2005
+++ wesnoth/src/game.cpp        Sun Feb  6 21:31:27 2005
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.188 2005/02/06 10:40:12 isaaccp Exp $ */
+/* $Id: game.cpp,v 1.189 2005/02/06 21:31:27 silene Exp $ */
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1514,7 +1514,8 @@
        // initialized to have get_intl_dir() to work.  Note: this
        // setlocale() but this does not take GUI language setting
        // into account.
-       setlocale (LC_ALL, "");
+       setlocale(LC_ALL, "C");
+       setlocale(LC_MESSAGES, "");
        const std::string& intl_dir = get_intl_dir();
        bindtextdomain (PACKAGE, intl_dir.c_str());
        bind_textdomain_codeset (PACKAGE, "UTF-8");

reply via email to

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