Re: Overlong UTF-8 (Re: Make Encode.pm support the real UTF-8)
[email protected] (Gisle Aas)
| Newsgroups | perl.unicode,perl.perl5.porters |
|---|---|
| Message-ID | <[email protected]> |
Gisle Aas <[email protected]> writes: > $ perl xxx.pl | perl xxx.pl encoding > Hi > utf8 "\xF0" does not map to Unicode at xxx.pl line 10. > utf8 "\x80" does not map to Unicode at xxx.pl line 10. > utf8 "\x80" does not map to Unicode at xxx.pl line 10. > utf8 "\x80" does not map to Unicode at xxx.pl line 10. > $VAR1 = 'foo\\xF0\\x80\\x80\\x80bar > '; > > Was this an intentional change? When using ':encoding(utf8)' all data after a bad byte is simply lost. This seems like a serious perl-5.8.6 recession to me.