[Freeciv-Dev] Re: (PR#9955) bug: accents in city names etc are "bad stri
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] Re: (PR#9955) bug: accents in city names etc are "bad strings" on OSX / gtk2 |
From: |
"Benoit Hudson" <bh@xxxxxxxxxxxxxxxxxxx> |
Date: |
Sun, 5 Sep 2004 12:31:18 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9955 >
On Sun, Sep 05, 2004 at 11:02:02AM -0700, Jason Short wrote:
> See PR#1824. There's a patch in there that will probably help you.
> However I can't guarantee it since it sounds like Freeciv doesn't know
> what your local character encoding is.
Oh, indeed. I'll try that patch before my next game.
> Can you tell us exactly what string is being passed to g_convert? Vasco
> already has a hack
>
> if (!strcmp(charset, "ANSI_X3.4-1968")
> || !strcmp(charset, "ASCII")) {
> charset = "ISO-8859-1";
> }
>
> that is intended to detect the use of ascii (which is usually erronous)
> and just use latin1 instead. But if your charset is not one of those
> two strings it will of course not catch it.
My charset is US-ASCII ; all my patch does is add that case to those
lines.
-- Benoît
|
|