GNOME Bugzilla – Bug 557036
rsvg-convert uses the wrong locale for command line processing
Last modified: 2008-10-20 14:08:50 UTC
Please describe the problem: You have to run setlocale(LC_ALL,"") before you can call g_option_context_parse(). Otherwise UTF-8 characters on the command line are rejected with an error "Invalid byte sequence in conversion input". Reported to Wikimedia at <https://bugzilla.wikimedia.org/show_bug.cgi?id=16014> Manual reference: <http://library.gnome.org/devel/glib/2.18/glib-Commandline-option-parser.html> The fix is trivial, you'd probably do better to write it yourself, but here's our patch if you're interested: <http://svn.wikimedia.org/viewvc/mediawiki/trunk/debs/librsvg2/debian/patches/cmdline-bugfixes.patch?revision=42255&view=markup> Steps to reproduce: rsvg-convert -o И.png < test.svg Actual results: Invalid byte sequence in conversion input Expected results: No error. Or at least the error message could have an LF at the end of it. Does this happen every time? Indeed it does. Other information:
Thanks, Tim!