Bug#461167: libpdf-api2-perl: $pdf->info() metadata improperly handles Unicode strings

Damyan Ivanov dmn at debian.org
Thu Jan 17 08:32:54 UTC 2008


forwarded 461167 http://rt.cpan.org/Public/Bug/Display.html?id=32373
thanks

-=| Chris Adams, Wed, Jan 16, 2008 at 05:31:50PM -0800 |=-
> PDF::API2 includes Encode but doesn't use it when checking for UTF-16
> strings in metadata ($pdf->info() hash). This causes the output to be
> garbled in our UTF-8 (perl -CSD) environment. The attached patch uses
> Encode::detect to decode UTF-16BE/LE strings; it might be useful to
> simply Encode::Guess the values but this approach is more conservative.

Thanks for the patch.

I've forwarded it upstream for comments. Hopefuly they won't object.

An adapted patch to the current upstream version (0.68) is in our
Subversion repository.

-- 
dam            JabberID: dam at jabber.minus273.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20080117/c6e7ac5c/attachment.pgp 


More information about the pkg-perl-maintainers mailing list