Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: GTK+ 2.0 client port
Home

[Freeciv-Dev] Re: GTK+ 2.0 client port

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Ben Webb <ben@xxxxxxxxxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: GTK+ 2.0 client port
From: Michael Stefaniuc <mstefani@xxxxxxxxx>
Date: Wed, 21 Nov 2001 19:25:41 +0100

On Wed, Nov 21, 2001 at 06:01:24PM +0000, Ben Webb wrote:
> On Wed, 21 Nov 2001, Michael Stefaniuc wrote:
> 
> > On Wed, Nov 21, 2001 at 04:19:19PM +0100, Andreas Kemnade wrote:
> > > But I don't see how that can handle UTF-8 on all win32 versions.
> > Doing wrapper functions (the "Layer for Unicode") for the _W funktions that 
> > do the MultiByteToWideChar/WideCharToMultiByte voodoo magic on the
> > wchar_t strings and call the native _A functions.
> 
>       But the MultiByteToWideChar/WideCharToMultiByte functions convert 
> to and from Windows "wide" characters, aka 16-bit fixed width characters 
so you could do the conversion this way 
UTF-8 -> wchar_t -> local codepage


> (UCS2-encoded Unicode, IIRC). UTF8 is a variable-width encoding, which the 
> Win32 API does not support, as far as I know. So we have to use 
It's supported starting with win98. If we don't want to cut win3.11
(win32s) and win95 from the pleasure of playing freeciv, we need to use
libiconv to do the UTF-8 -> wchar_t conversion.

> libiconv; fortunately it compiles without any problems on Windows systems, 
> and the same guy that ported the GIMP to Windows makes DLLs available.

bye
        michael
-- 
Michael Stefaniuc               Tel.: +49-711-96437-199
System Administration           Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani@xxxxxxxxx
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart


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