GNU bug report logs - #25336

Previous Next

Package: grep;

Reported by: Zepp Lu <luzepu678 <at> gmail.com>

Date: Mon, 2 Jan 2017 17:32:03 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Zepp Lu <luzepu678 <at> gmail.com>
To: bug-grep <at> gnu.org
Date: Mon, 2 Jan 2017 21:22:59 +0800
[Message part 1 (text/plain, inline)]
OS: Archlinux
grep version: 2.27-1

Bug description: grep behaves weirdly when searching hex values.

How to reproduce:
$ printf '\x53\xef' | grep -aoP '\x53\xef'
(no output, returns 1)
$ printf '\x53\xc3\xaf' | grep -aoP '\x53\xef'
Sï
$ printf '\x53\xc3\xef' | grep -aoP '\x53\xef'
(no output, returns 1)

grep (version 2.12-2) provided by Debian works just fine.
[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 141 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.