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: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#19985: closed (active locale impacts binary data detection?)
Date: Thu, 31 Dec 2015 03:26:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 30 Dec 2015 19:25:04 -0800
with message-id <5684A010.4000302 <at> cs.ucla.edu>
and subject line Re: grep BUG: text file is detected as binary
has caused the debbugs.gnu.org bug report #20526,
regarding active locale impacts binary data detection?
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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: Mike Frysinger <vapier <at> gentoo.org>
To: bug-grep <at> gnu.org
Cc: proteuss <at> sdf.lonestar.org
Subject: active locale impacts binary data detection?
Date: Mon, 2 Mar 2015 20:59:51 -0500
[Message part 3 (text/plain, inline)]
i've got some users reporting diff behavior between 2.20 and 2.21.  the example 
file is attached and has mixed encoding.  i think the new behavior is correct, 
but want to make sure it's expected, or that the maintainers don't have 
different ideas here.

with 2.20:
$ LC_ALL=en_US.UTF8 grep 8 test-mixed
  852  cd  ΘΕΜΑΤΑ\ ΠΑΝΕΛΛΗΝΙΩΝ/

with 2.21:
$ LC_ALL=en_US.UTF8 grep 8 test-mixed
Binary file test-mixed matches
$ LC_ALL=en_US.UTF8 grep -a 8 test-mixed
  852  cd  ΘΕΜΑΤΑ\ ΠΑΝΕΛΛΗΝΙΩΝ/
$ LC_ALL=C grep 8 test-mixed
  852  cd  ΘΕΜΑΤΑ\ ΠΑΝΕΛΛΗΝΙΩΝ/
-mike
[test-mixed.gz (application/octet-stream, attachment)]
[signature.asc (application/pgp-signature, inline)]
[Message part 6 (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 7 (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)]

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.