This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id:
130074
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
MAT [...] cpan.fsck.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
2.034
Fixed in:
2.035



Subject: Undefined subroutine &PDF::API2::Annotation::is_utf8
I updated from 2.033, and now, I'm getting these errors: Undefined subroutine &PDF::API2::Annotation::is_utf8 called at local/lib/perl5/PDF/API2/Annotation.pm line 69. Changing all the: if (is_utf8($url)) { to if (utf8::is_utf8($url)) { fixes the issue here.
On Mon Jul 15 18:08:05 2019, MAT wrote:
Show quoted text
> I updated from 2.033, and now, I'm getting these errors: > > Undefined subroutine &PDF::API2::Annotation::is_utf8 called at > local/lib/perl5/PDF/API2/Annotation.pm line 69. > > Changing all the: > > if (is_utf8($url)) { > > to > > if (utf8::is_utf8($url)) { > > fixes the issue here.
Thanks for the bug report! I've removed those is_utf8 checks since they're no longer necessary, improved the test coverage for annotations, and reviewed the other instances of is_utf8 in the code to ensure the problem doesn't show up anywhere else.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.