Control: reassign -1 librsvg2-2
Control: affects -1 gweled
Control: retitle -1 rsvg_pixbuf_from_file_at_size broken in recent librsvg2-2

Dear Gtk/GNOME maintainers,

It looks like rsvg_acquire_file_data()’s recent switch to
g_file_new_for_uri() broke acquisition for rsvg_pixbuf_from_file_at_size()
(which admittedly is deprecated, but shouldn’t break).

gweled loads its SVGs by building a full path, and calling
rsvg_pixbuf_from_file_at_size(). This used to work fine, but breaks with
librsvg2-2 2.40.20. Tracing through the load shows that the operation which
fails is g_file_new_for_uri(). rsvg_pixbuf_from_file_at_size() itself calls
rsvg_pixbuf_from_file_with_size_data(), which duplicates the provided
filename as a URI (!) and calls _rsvg_io_acquire_data(), which tries
rsvg_acquire_file_data() since the provided URI doesn’t start with “data:”.
The latter now calls g_new_file_from_uri() which fails to construct a usable
GFile since the provided name isn’t a URI...

This can be fixed from gweled by prepending “file:/”, but that seems like a
brittle fix since rsvg_pixbuf_from_file_at_size() supposedly expects a
filename — although providing a URI also works fine in librsvg2-2 2.40.16 so
who knows.

Regards,

Stephen

Attachment: pgpzo3uahZJaB.pgp
Description: OpenPGP digital signature

Reply via email to