Skip Menu |
 

This queue is for tickets about the Carp CPAN distribution.

Report information
The Basics
Id: 76593
Status: resolved
Priority: 0/
Queue: Carp

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: illegal Unicode on pre-5.12 perls
Date: Mon, 16 Apr 2012 11:46:28 +0100
To: bug-Carp [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
Download (untitled) / with headers
text/plain 449b
Carp 1.25. $ perl5.10.1 -MCarp -lwe 'sub foo { local $^W=0; Carp::confess "foo" } foo("\x{ffff}")' Unicode character 0xffff is illegal at -e line 1. Malformed UTF-8 character (fatal) at /opt/perl-5.10.1/lib/5.10.1/Carp.pm line 195. On Perl 5.12 this is a warning instead of a fatal error, and on 5.14 it doesn't occur. (But 5.14 does get "Wide character in die" instead.) This error/warning needs to be suppressed for all Perl versions. -zefram
Download (untitled) / with headers
text/plain 688b
On Mon Apr 16 06:46:41 2012, zefram@fysh.org wrote: Show quoted text
> Carp 1.25. > > $ perl5.10.1 -MCarp -lwe 'sub foo { local $^W=0; Carp::confess "foo" } > foo("\x{ffff}")' > Unicode character 0xffff is illegal at -e line 1. > Malformed UTF-8 character (fatal) at /opt/perl- > 5.10.1/lib/5.10.1/Carp.pm line 195. > > On Perl 5.12 this is a warning instead of a fatal error, and on 5.14 > it doesn't occur. (But 5.14 does get "Wide character in die" > instead.) > This error/warning needs to be suppressed for all Perl versions.
‘no warnings 'utf8'’ will take care of that. Been there; done that. :-) If you look through JE’s source code, you’ll see that at the top of almost every file.
Now fixed in blead.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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