Re: GLib file name encoding (Was: Please join me...)



Tor Lillqvist wrote:
David Necas (Yeti) writes:
 > How can I write code so that it is source compatible with
 > GLib and Gtk+ from 2.2 to 2.6+ without branching by GLib
 > (Gtk+) version?

You can't. (If you want to support non-ASCII pathnames on Windows.)
Sorry.

WTF, this looks like a major design fault with GLib.  I thought
2.x versions meant to be backward compatible?  Or do you mean that
filename handling in pre-2.6 was incomplete and that 2.6 just made
it fully working?  (In which case it is fine.)

Just today I decided to strengthen my code against weird filenames
and went on inserting things like

        g_filename_to_utf8 (...)
        g_filename_from_utf8 (...)

Is there a problem with this?  My code is working on GTK+ 2.0 and
up (well, maybe apart from this filename issue...)

Paul




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