GNU bug report logs - #30326
grep not searching through a text file (thinking it binary)

Previous Next

Package: grep;

Reported by: "L. A. Walsh" <gnu <at> tlinx.org>

Date: Fri, 2 Feb 2018 19:31:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: L A Walsh <gnu <at> tlinx.org>
Cc: 30326-done <at> debbugs.gnu.org
Subject: bug#30326: grep not searching through a text file (thinking it binary)
Date: Sun, 4 Feb 2018 09:29:54 -0800
L A Walsh wrote:

> I didn't care

Some users do care: they don't want grep to output binary junk that may mess up 
their screen.

> Problem is on a mailbox, different emails can have different encodings.

There's no general solution to that problem. No matter what grep does, it will 
mishandle some cases. At best the user will get an approximation to what is 
really wanted. And there will be some cases where grep's default behavior (no 
matter what the default is) will do the "wrong" thing.




This bug report was last modified 7 years and 35 days ago.

Previous Next


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