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

2019-08-25 Thread Leszek Dubiel
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,

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

2017-01-29 Thread Leszek Dubiel
This still happens with 5.24.1-1. It can be reduced to printf "\x9c\x5a" | perl -CI -ne '/[^#]*/' The byte sequence is indeed invalid utf8 (as shown by iconv as well), but you're explicitly telling Perl (with -CS) that it's getting utf8 on stdin. This is a recipe for problems. So I'm not

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

2017-01-29 Thread Niko Tyni
Control: found -1 5.24.1-1 On Sun, Jan 29, 2017 at 06:23:30PM +0100, Leszek Dubiel wrote: > Package: perl > Version: 5.20.2-3+deb8u6 > Severity: normal > > This is stripped out program version that causes error: > > printf "\x41\x9c\x5a\x0a" | perl -CS -e '$_ = <>; /^(.*)$/ && print >

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

2017-01-29 Thread Leszek Dubiel
Package: perl Version: 5.20.2-3+deb8u6 Severity: normal This is stripped out program version that causes error: printf "\x41\x9c\x5a\x0a" | perl -CS -e '$_ = <>; /^(.*)$/ && print "($1)\n"; /[^#]*/;' It displays: (A�Z) Malformed UTF-8 character (fatal) at -e line 1,