GNU bug report logs - #22838
New 'Binary file' detection considered harmful

Previous Next

Package: grep;

Reported by: Marcello Perathoner <marcello <at> perathoner.de>

Date: Sun, 28 Feb 2016 18:13:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: "Holger Bruenjes" <holgerbruenjes <at> gmx.net>
To: bug-grep <at> gnu.org
Subject: Re: bug#22838: New 'Binary file' detection considered harmful
Date: Mon, 29 Feb 2016 21:29:46 +0100
[Message part 1 (text/plain, inline)]
Am 2016-02-29 um 21:11 schrieb Marcello Perathoner:

> As a German user I have on my disk files in many encodings: utf-8, 
> iso-8859-1, win-1252, iso-8859-15, encodings that are now defunct like 
> CP850, CP847, "German 7-bit ASCII" that replaced braces with Umlauts, 
> old WordStar files that used control characters inside.
> 
> Since 2.21 I will now have to always specify -a or LC_ALL=C when 
> grepping my files.

You can use a wrapper for grep

mv grep in.grep


and create a new grep file with the following

LC_ALL=C; "/usr/bin/in.grep" "${@}"


that worked perfect

Holger



[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 8 years and 257 days ago.

Previous Next


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