Subject: | utf8 warn/error depending on Perl version |
Date: | Mon, 20 Feb 2012 10:08:43 +0000 |
To: | bug-Carp [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
$ perl5.10.1 -MCarp -e 'sub dd { Carp::longmess() } dd("\x{ffff}")'
Malformed UTF-8 character (fatal) at /opt/perl-5.10.1/lib/5.10.1/Carp.pm line 195.
$ perl5.12.4 -MCarp -e 'sub dd { Carp::longmess() } dd("\x{ffff}")'
Unicode non-character 0xffff is illegal for interchange in pattern match (m//) at /opt/perl-5.12.4/lib/site_perl/5.12.4/Carp.pm line 195.
Don't get this warning or error on 5.8.8 or 5.14.2. Carp needs to avoid
them on all Perl versions.
-zefram