![](https://secure.gravatar.com/avatar/214fe9a0ecb4aed8994e8618ade6f5a8.jpg?s=120&d=mm&r=g)
On 12/9/2008 6:48 PM, Krzysztof Kosiński wrote:
I learned that Windows + GOption is a combination full of fail.
http://bugzilla.gnome.org/show_bug.cgi?id=522131
Until this bug is fixed, we need to use a modified in-tree version of GOption source code which accepts an UTF-8 encoded argv on Windows (a patch is attached to that bug). If I move the option parser into a separate object, put both the in-tree code and the parser object in the Inkscape namespace and only include the in-tree code's header on Windows, the modified implementation will only be used there with no additional changes. GOption source is a single 56kB file + 6kB header.
Regards, Krzysztof Kosiński
Actually, popt (which we have used for a long time) does handle utf8 (as far as I know), and it does use gettext for error messages.
bob