Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2002:
[Freeciv-Dev] Gtk+ 2.0 charset problems. (PR#1757)
Home

[Freeciv-Dev] Gtk+ 2.0 charset problems. (PR#1757)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Gtk+ 2.0 charset problems. (PR#1757)
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Wed, 17 Jul 2002 01:29:33 -0700 (PDT)

This area needs to be rewritten rather badly, but the following
workaround should do for now.  It mirrors the approach used in the
gtk1.2 client, though the mechanism is slightly different.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
Are we on STRIKE yet?

Index: client/gui-gtk-2.0/gui_main.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/gui_main.c,v
retrieving revision 1.21
diff -u -r1.21 gui_main.c
--- client/gui-gtk-2.0/gui_main.c       2002/07/10 14:13:37     1.21
+++ client/gui-gtk-2.0/gui_main.c       2002/07/17 08:23:07
@@ -848,6 +848,12 @@
     const gchar *charset;
 
     g_get_charset(&charset);
+
+    if (!strcmp(charset, "ANSI_X3.4-1968")
+       || !strcmp(charset, "ASCII")) {
+      charset = "ISO-8859-1";
+    }
+    
     network_charset = mystrdup(charset);
   }
 
Index: doc/BUGS
===================================================================
RCS file: /home/freeciv/CVS/freeciv/doc/BUGS,v
retrieving revision 1.6
diff -u -r1.6 BUGS
--- doc/BUGS    2002/06/29 19:54:42     1.6
+++ doc/BUGS    2002/07/17 08:23:07
@@ -14,10 +14,6 @@
 KNOWN BUGS:
 ===========
 
- - Some lines containing special characters will show up blank if
-   your locale is set to "C". As a workaround set your locale to
-   something else, like "en_US".
-
  - Your CMA settings are only sent to the server when you press
    turn done, and therefore changes you make to CMA in the same
    turn as you save a game will be lost.



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Gtk+ 2.0 charset problems. (PR#1757), Gaute B Strokkenes <=