Re: File name encoding and GTK ABI compatibility on Win32



Tor Lillqvist wrote:
> Shouldn't g_locale_from_utf8 return utf8 because utf8 is now the file > system encoding on win32?

No, but g_filename_{to,from}_utf8() now reduce to the equivalent of
strndup() on Win32.

Does this mean that code converting from utf8 to GLib's filesystem encoding needs to use g_filename_{to,from}_utf8 to work on both win32 and *nix? Would it be possible to set the G_FILENAME_ENCODING environment variable to 'utf8' as well?

Thanks,

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]