Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] Re: ISO-8859-2
Home

[Freeciv-Dev] Re: ISO-8859-2

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Per Inge Mathisen <per@xxxxxxxxxxx>
Cc: Mateusz Stefek <mstefek@xxxxxxxxx>, Freeciv development <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: ISO-8859-2
From: Mateusz Stefek <mstefek@xxxxxxxxx>
Date: Tue, 07 Sep 2004 10:17:27 +0000
Reply-to: mstefek@xxxxxxxxx

Dnia 2004-09-07 11:59:37, Per Inge Mathisen napisał(a):
What OS are you running? On my Fedora 1 this works fine.

  - Per
Mandrake 10.0
[mateusz@localhost client]$ cat /etc/sysconfig/i18n
LC_TELEPHONE=pl_PL.UTF-8
LC_CTYPE=pl_PL.UTF-8
LANGUAGE=pl_PL.UTF-8:pl
LC_MONETARY=pl_PL.UTF-8
LC_ADDRESS=pl_PL.UTF-8
LC_COLLATE=pl_PL.UTF-8
LC_PAPER=pl_PL.UTF-8
LC_NAME=pl_PL.UTF-8
LC_NUMERIC=pl_PL.UTF-8
SYSFONT=lat2-sun16
LC_MEASUREMENT=pl_PL.UTF-8
LC_TIME=pl_PL.UTF-8
LANG=pl_PL.UTF-8
LC_IDENTIFICATION=pl_PL.UTF-8
LC_MESSAGES=pl_PL.UTF-8


It's rather strange that client's data encoding is latin1, because it
is used to convert from the network. It should always be UTF-8 IMO.

**************************************************************************
 Convert a text string from the data to the internal encoding when it
is
 first read from the network.  Returns FALSE if the destination isn't
 large enough or the source was bad.
**************************************************************************/
static bool get_conv(char *dst, size_t ndst,
                     const unsigned char *src, size_t nsrc)
{
 char *out = data_to_internal_string_malloc(src);
...

--
mateusz



----------------------------------------------------------------------
Portal INTERIA.PL zaprasza... >>> http://link.interia.pl/f17cb



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