Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] Re: (PR#10027) (civclient:12460): Gtk-CRITICAL **: file gt
Home

[Freeciv-Dev] Re: (PR#10027) (civclient:12460): Gtk-CRITICAL **: file gt

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: brett.albertson@xxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#10027) (civclient:12460): Gtk-CRITICAL **: file gtktextbuffer.c: line 548: assertion `g_utf8_validate (text, len, NULL)' failed
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Sep 2004 16:56:46 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10027 >

Brett Albertson wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=10027 >
> 
> BTW, apparently the "646" encoding on Solaris is infamous.  It stands 
> for ASCII, but isn't recognized by iconv_open().

Ugh.  Here's a similar patch for freeciv (but without the comments it 
obviously needs).  Does this work?  Are you sure we should use UTF-8 
here and not ISO-8859-1?

Test to see if the output of non-ascii characters on the server command 
line (like in "/list") is correct.  Try under UTF-8 and ISO-8859-1.

jason

Index: utility/fciconv.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/utility/fciconv.c,v
retrieving revision 1.3
diff -u -r1.3 fciconv.c
--- utility/fciconv.c   10 Sep 2004 21:51:47 -0000      1.3
+++ utility/fciconv.c   10 Sep 2004 23:54:31 -0000
@@ -76,6 +76,10 @@
        * encoding is unconfigured. */
       local_encoding = "ISO-8859-1";
     }
+
+    if (mystrcasecmp(local_encoding, "646") == 0) {
+      local_encoding = "UTF-8";
+    }
   }
 
   /* Set the internal encoding - first check $FREECIV_INTERNAL_ENCODING,

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