Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2005:
[Freeciv-Dev] (PR#10265) GTK/win32 left panel missing some information
Home

[Freeciv-Dev] (PR#10265) GTK/win32 left panel missing some information

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: imbaczek@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#10265) GTK/win32 left panel missing some information
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Sun, 13 Feb 2005 12:19:17 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=10265 >

I compiled freeciv under Mingw and it worked fine, I don't know why the
build on www.freeciv.org is buggy.
This patch is a hack that makes freeciv use default thousand_separator
under Windows.
What else can I do?
This is a very serious bug which makes Freeciv unplayable in Poland(and
probably some other countries with buggy locale).
I suggest commiting it to S2_0 and searching for better workaround in HEAD.
--
mateusz
Index: utility/shared.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/utility/shared.c,v
retrieving revision 1.118.2.3
diff -u -r1.118.2.3 shared.c
--- utility/shared.c    1 Jan 2005 16:38:21 -0000       1.118.2.3
+++ utility/shared.c    13 Feb 2005 20:09:17 -0000
@@ -1252,6 +1252,8 @@
   (void) bindtextdomain(PACKAGE, LOCALEDIR);
   (void) textdomain(PACKAGE);
 
+/* Some windows locale are buggy */
+#ifndef WIN32_NATIVE
   /* Don't touch the defaults when LC_NUMERIC == "C".
      This is intended to cater to the common case where:
        1) The user is from North America. ;-)
@@ -1284,6 +1286,7 @@
     grouping_sep_len = strlen(grouping_sep);
   }
 #endif
+#endif
 }
 
 /***************************************************************************

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