[Freeciv-Dev] Re: GTK+ 2.0 client port
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- [Freeciv-Dev] GTK+ 2.0 client port, Vasco Alexandre Da Silva Costa, 2001/11/20
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Reinier Post, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Michael Stefaniuc, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Andreas Kemnade, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Michael Stefaniuc, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Andreas Kemnade, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Michael Stefaniuc, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Michael Stefaniuc, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Ben Webb, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port,
Michael Stefaniuc <=
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Andreas Kemnade, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Michael Stefaniuc, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Vasco Alexandre Da Silva Costa, 2001/11/21
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Gaute B Strokkenes, 2001/11/24
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Vasco Alexandre Da Silva Costa, 2001/11/24
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Gaute B Strokkenes, 2001/11/24
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Andreas Kemnade, 2001/11/25
[Freeciv-Dev] Re: GTK+ 2.0 client port, Gaute B Strokkenes, 2001/11/24
|
|