Re: Gnome2::VFS->format_uri_for_display and UTF-8



On 16.05.2010 17:42, Mario Kemper wrote:
However, it doesn't seem to return a valid utf-8 string, e.g. german
umlauts are not correctly displayed. I've attached an example program
where this problem is illustrated. If a use utf8::decode on the returned
string everything is fine.

That's indeed a bug in the bindings. The method returns a string without the utf8 flag set, so when you pass this into a method that expects utf8, the string is converted again resulting in garbage. utf8::decode() fixes this because it sets the utf8 flag (and avoids double encoding).

Fixed in git: <http://git.gnome.org/browse/perl-Gnome2-VFS/commit/?id=dedc970f69c>. Does this warrant a new release?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]