<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39475 >
> [EMAIL PROTECTED] - Mo 30. Jul 2007, 11:58:19]:
> This is freeciv version 2.1.0-beta4 for Windows.
> In the chinese version, some of the texts are not substituted properly.
> Besides, it looks like the turn number is also incorrect (5257472),
> maybe also a formatting bug.
> Please take a look at the attached screenshots in english and chinese.
> Note that this bug doesn't appear on the Linux version 2.1.0-25.beta4.
> Best regards,
> Vincent Petry
I tracked it down to the Win32-specific "setlocale" logic in gtk_main().
The problem can be solved by calling gtk_disable_setlocale() before
gtk_main(), which is also okay for non-win32 platforms since at this
point the locale has already been set by init_nls(). Patch attached.
--- client/gui-gtk-2.0/gui_main.c (revision 13132)
+++ client/gui-gtk-2.0/gui_main.c (working copy)
@@ -1280,6 +1280,10 @@
+ /* the locale has already been set in init_nls() and the Win32-specific
+ * locale logic in gtk_init() causes problems with zh_CN (see PR#39475) */
/* GTK withdraw gtk options. Process GTK arguments */
Freeciv-dev mailing list