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> |
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