Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#9955) bug: accents in city names etc are "bad strings"
Home

[Freeciv-Dev] (PR#9955) bug: accents in city names etc are "bad strings"

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9955) bug: accents in city names etc are "bad strings" on OSX / gtk2
From: "Benoit Hudson" <bh@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 5 Sep 2004 10:52:00 -0700
Reply-to: rt@xxxxxxxxxxx

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

On OSX, whenever an accent is sent from the server to the client, the string
containing that accent is nuked for being a "bad string."  The problem stems
from g_convert being called with a source encoding of US-ASCII rather than
ISO-8859-1.

This patch fixes the problem by extending a hack in gui_main.c -- but it's
just a hack.

The broader question is: why is the transfer-encoding being set by the client 
based on various environment variables and hacks, independent of the 
server?  If we want to be inclusive, there should be some kind of handshake 
where the client and server agree on an encoding (for instance, server sends 
a first string in ASCII containing the name of the encoding which is used 
thenceforth).  Otherwise we should just hard-code the encoding to something
like ISO-8859-1.

Attachment: macos-encoding-fix.diff
Description: Binary data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9955) bug: accents in city names etc are "bad strings" on OSX / gtk2, Benoit Hudson <=