After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 557036 - rsvg-convert uses the wrong locale for command line processing
rsvg-convert uses the wrong locale for command line processing
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.22.x
Other All
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-20 06:45 UTC by Tim Starling
Modified: 2008-10-20 14:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tim Starling 2008-10-20 06:45:28 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:
Comment 1 Dominic Lachowicz 2008-10-20 14:08:50 UTC
Thanks, Tim!