GNU bug report logs -
#30326
grep not searching through a text file (thinking it binary)
Previous Next
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
On 02/05/2018 01:27 PM, Paul Jackson wrote:
>
> I created a large file ("/tmp/pjbb") by concatenating:
> 1) a big plain ASCII file of C source code,
> 2) a small ELF executable, and
> 3) another big plain ASCII file of C source code.
>
> Then I grep'd in this big file for the string "pj <at> usa.net
> <mailto:pj <at> usa.net>", which
> appeared twice in the first file of C source code, and once
> again in the second file of C source code.
That example contains NULs, which have indicated binary data for ages. I
was referring to text containing encoding errors without containing
NULs, which is what this bug report originally was about. Sorry I didn't
make that clear.
This bug report was last modified 7 years and 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.