Package: grep
Version: 2.20-4
Severity: normal

With -P (PCRE), $ matches an invalid character, while it should match
only an end of line. Example:

$ printf 'ab\377cd\n' | grep -a -P '^.*$'
ab�cd
$ printf 'ab\377cd\n' | grep -a -P '^.*d'
$

I cannot reproduce this problem with upstream's grep 2.21.

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages grep depends on:
ii  dpkg          1.17.22
ii  install-info  5.2.0.dfsg.1-6
ii  libc6         2.19-13
ii  libpcre3      2:8.35-3.3

grep recommends no packages.

grep suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to