Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7228) freeciv-client-gtk: City name problems (Uni
Home

[Freeciv-Dev] Re: (PR#7228) freeciv-client-gtk: City name problems (Uni

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jordi@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7228) freeciv-client-gtk: City name problems (Unicode problem?)
From: "Jason Short" <jshort@xxxxxxxxxxxxxx>
Date: Tue, 13 Jan 2004 09:09:17 -0800
Reply-to: rt@xxxxxxxxxxx

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

>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7228 >
>
> On Mon, Jan 12, 2004 at 12:58:16PM -0800, Vasco Alexandre da Silva Costa
> wrote:
>> > The relavant functions are: common/shared.c:is_sane_name() and
>> > common/shared.c:is_iso_latin1(). Basically is_iso_latin1 tests for the
>> > unused range 127-161 (~...¡). I suspect that this function is
>> called
>> > with utf-8 data. The server doesn't use utf-8. But GTK2 does.
>>
>> You mean it didn't use to use UTF-8. IIRC the server uses UTF-8 with the
>> recent changes made in 1.14.1 to fix the UTF-8 locale bugs in the
>> server.
>
> Uhhh. Are you sure. Did I really miss this?

No, the server doesn't necessarily use UTF-8.

The data is stored in the rulesets in latin1, as before.  On loading, it
is converted into the local character set.  This may be latin1, utf-8, or
any other character set.  The original data is one-character-per-byte but
after conversion it may not be.

jason





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