GNU bug report logs - #20526
BUG: text file is detected as binary

Previous Next

Package: grep;

Reported by: Sebastian Poehn <sebastian.poehn <at> gmail.com>

Date: Thu, 7 May 2015 15:41:03 UTC

Severity: normal

Merged with 19230, 19985, 21558

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Hans Pelleboer <hanspelleboer <at> online.nl>
Subject: bug#19230: closed (Re: grep BUG: text file is detected as binary)
Date: Thu, 31 Dec 2015 03:26:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#20526: Help! grepV2.21 treats ISO-8859 text files as if they are binary

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 19230 <at> debbugs.gnu.org.

-- 
20526: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20526
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 20526-done <at> debbugs.gnu.org
Cc: Kamil Dudka <kdudka <at> redhat.com>, Benno Schulenberg <bensberg <at> justemail.net>,
 Mike Frysinger <vapier <at> gentoo.org>, Johannes Meixner <jsmeix <at> suse.de>,
 Hans Pelleboer <hanspelleboer <at> online.nl>,
 Sebastian Poehn <sebastian.poehn <at> gmail.com>,
 Ángel González <angel <at> re.16bits.net>,
 Eric Blake <eblake <at> redhat.com>
Subject: Re: grep BUG: text file is detected as binary
Date: Wed, 30 Dec 2015 19:25:04 -0800
[Message part 3 (text/plain, inline)]
I installed into Savannah a patch (attached) that should fix this problem in 
typical cases, and am boldly marking the bug as done. Please give the fix a try 
if you have the time. Thanks.
[0001-grep-be-less-picky-about-encoding-errors.patch (text/x-diff, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Hans Pelleboer <hanspelleboer <at> online.nl>
To: bug-grep <at> gnu.org
Subject: Help! grepV2.21 treats ISO-8859 text files as if they are binary
Date: Sun, 30 Nov 2014 14:40:31 +0100
Hello,

After upgrading to V2.21 I discovered that certain textfiles did not
yield any output after a grep search but the single line:

Binary file <NAME_FILE> matches

Further tests showed, that grep only behaved this way with text
files that were encoded according to ISO-8859 (There may be more!).
The presence or absence of diacritical characters didn't matter, nor
variants of formatting; another file with DOS type <CR><LF>'s parsed
just the same.

The only way to overcome this was by using the `roughshod' option
of the -a flag.

None of grep's versions that I have used before ever showed
this peculiarity.

I hope you can shed some light on this issue,

hansp





This bug report was last modified 9 years and 138 days ago.

Previous Next


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