Bug 130868 - graphics/librsvg2: fix for locale bug in rsvg-convert
Summary: graphics/librsvg2: fix for locale bug in rsvg-convert
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-22 11:20 UTC by Marcin Cieslak
Modified: 2009-02-01 16:40 UTC (History)
0 users

See Also:


Attachments
file.diff (661 bytes, patch)
2009-01-22 11:20 UTC, Marcin Cieslak
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Cieslak 2009-01-22 11:20:01 UTC
rsvg-convert as released has an annoying bug:

Bug 557036 รข rsvg-convert uses the wrong locale for command line processing

http://bugzilla.gnome.org/show_bug.cgi?id=557036

rsvg-convert refuses to work on UTF-8 filenames in the filesystem, regardless of the current locale.

Attached please find a simple patch to fix this.
Patch by Tim Starling of Wikimedia.

Fix: setlocale(3) should be called early at startup
How-To-Repeat: 
Try to run rsvg-convert using UTF-8 filesnames.
The result:

Invalid byte sequence in conversion input
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-01-22 11:20:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Jeremy Messenger freebsd_committer freebsd_triage 2009-02-01 16:39:27 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-02-01 16:39:27 UTC
mezz        2009-02-01 16:39:16 UTC

  FreeBSD ports repository

  Modified files:
    graphics/librsvg2    Makefile 
  Added files:
    graphics/librsvg2/files patch-cmdline-bugfixes 
  Log:
  Fix the rsvg-convert when using UTF-8 filename, bump the PORTREVISION.
  
  PR:             ports/130868
  Submitted by:   Marcin Cieslak <saper@SYSTEM.PL>
  Obtained from:  http://tinyurl.com/cuab6v
  
  Revision  Changes    Path
  1.70      +1 -1      ports/graphics/librsvg2/Makefile
  1.1       +29 -0     ports/graphics/librsvg2/files/patch-cmdline-bugfixes (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"