GNU bug report logs - #51669
some patterns which should match 0x0 don’t do so

Previous Next

Package: grep;

Reported by: Christoph Anton Mitterer <calestyo <at> scientia.org>

Date: Sun, 7 Nov 2021 17:30:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: Christoph Anton Mitterer <calestyo <at> scientia.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 51669 <at> debbugs.gnu.org
Subject: Re: bug#51669: some patterns which should match 0x0
 don’t do so
Date: Mon, 08 Nov 2021 15:59:51 +0100
On Sun, 2021-11-07 at 23:20 -0800, Paul Eggert wrote:
> POSIX says text files cannot contain NUL bytes. They can contain 0x02
> bytes, though.

Well yes, that' clear... but at least the console output in the 0x02
case seems to imply that grep already considers it binary (and not text
file).
So I thought it would make sense to do the same if it encounters 0x00.


Anyway... thanks for your help :-)

Cheers,
Chris.




This bug report was last modified 3 years and 252 days ago.

Previous Next


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