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: Paul Eggert <eggert <at> cs.ucla.edu>
To: Sebastian Poehn <sebastian.poehn <at> gmail.com>, 20526 <at> debbugs.gnu.org
Subject: bug#20526: BUG: text file is detected as binary
Date: Thu, 07 May 2015 09:23:27 -0700
That file uses ISO 8859 encoding (presumably Latin-1 or Latin-9), so you 
need to grep it in a locale compatible with that encoding.  It appears 
that you ran grep in a UTF-8 or other incompatible locale, which meant 
the ISO 8859 encoding wasn't valid and was treated as binary gibberish.  
You could try working around it with this:

grep -a PKG_NAME Makefile

or this:

LC_ALL=de_DE.iso885915 grep PKG_NAME Makefile

but in either case 'grep' might output the binary gibberish, which could 
cause other problems.  So it might be better to change that non-ASCII 
character in the file's string "Raphaƫl" to use an encoding compatible 
with the encoding of your locale.




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

Previous Next


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