Bug#853091: perl: Dying when matching simple regex: Malformed UTF-8 character fatal

Leszek Dubiel leszek at dubiel.pl
Sun Aug 25 20:10:52 BST 2019


Still happens with:

This is perl 5, version 28, subversion 1 (v5.28.1) built for 
i686-linux-gnu-thread-multi-64int
(with 61 registered patches, see perl -V for more detail)



# printf "\x9c\x5a" | perl -CI -ne '/[^#]*/'

Malformed UTF-8 character: \x9c (unexpected continuation byte 0x9c, with 
no preceding start byte) in pattern match (m//) at -e line 1, <> line 1.
Malformed UTF-8 character (fatal) at -e line 1, <> line 1.




More information about the Perl-maintainers mailing list