[Freeciv-Dev] Re: GTK+ 2.0 client port
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
i hate to reply to myself.
On Wed, Nov 21, 2001 at 06:32:39PM +0100, Michael Stefaniuc wrote:
> On Wed, Nov 21, 2001 at 04:19:19PM +0100, Andreas Kemnade wrote:
> [snip]
> > > This is what MSDN says
> > >
> > (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/sysinfo_4k55.asp):
> > > Windows 95/98/Me: GetWindowsDirectoryW is supported by the Microsoft
> > > Layer for Unicode. To use this, you must add certain files to your
> > > application, as outlined in Microsoft Layer for Unicode on Windows
> > > 95/98/Me Systems
> > But I guess the license of that Layer for Unicode is not GPL
> > compatible...
> > I have not found the source of it.
> Hmm... I thought that are only some dlls the user needs to replace.
> I guess you don't want to maintain a different code base for Win9x and
> WinNT/2000/XP? We wouldn't need to make our own Layer for Unicode for
argh... that should mean "We would need ..."
> the funktion we need. It's a stupid work but shouldn't be so
> problematic.
>
> > > > But at least we can use libiconv to convert the stuff to the codepage
> > > > windows uses or tell gettext to do that automatically.
> > > Why? Windows has it's native function (again from MSDN):
> > > STRCONV( ) Function
> > > Converts character expressions between single-byte, double-byte,
> > > UNICODE, and locale-specific representations.
> > >
> > > See
> > >
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fox7help/html/lngstrconvlp_rp.asp
> >
> > I think that's a function from Fox and not from the windows api.
> Duh, i should read more carefully.
>
> > I cannot find its prototype in the windows api headers.
> > The only conversion function I know is MultiByteToWideChar (which can
> > convert from unicode).
> and WideCharToMultiByte to do the conversion in the other direction.
>
> > 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.
>
> 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 <=
- [Freeciv-Dev] Re: GTK+ 2.0 client port, Ben Webb, 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, 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
|
|