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

Leszek Dubiel leszek.dubiel at dubielvitrum.pl
Sun Jan 29 17:23:30 UTC 2017


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, <> line 1.

Locale is pl_PL.UTF-8 . 


-- System Information:
Debian Release: 8.7
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages perl depends on:
ii  dpkg          1.17.27
ii  libbz2-1.0    1.0.6-7+b3
ii  libc6         2.19-18+deb8u7
ii  libdb5.3      5.3.28-9
ii  libgdbm3      1.8.3-13.1
ii  perl-base     5.20.2-3+deb8u6
ii  perl-modules  5.20.2-3+deb8u6
ii  zlib1g        1:1.2.8.dfsg-2+b1

Versions of packages perl recommends:
ii  netbase  5.3
pn  rename   <none>

Versions of packages perl suggests:
pn  libterm-readline-gnu-perl | libterm-readline-perl-perl  <none>
pn  make                                                    <none>
pn  perl-doc                                                <none>

-- no debconf information




More information about the Perl-maintainers mailing list