Timeline for What makes grep consider a file to be binary?
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 26, 2016 at 16:51 | comment | added | Anne van Rossum | @netawater Thanks! This is e.g. the case if you have something like Müller in a text-file. That's 0xFC hexadecimal, so outside the range grep would expect for utf8 (up to 0x7F). Check with printf 'a\x7F' | grep 'a' as Ciro describe above. | |
| Aug 17, 2015 at 2:52 | comment | added | netawater | grep 2.21 treats ISO-8859 text files as if they are binary, add export LC_ALL=C before grep command. | |
| Jun 9, 2015 at 13:50 | comment | added | Gallaecio | This happened to me as well. In particular, the cause was an ISO-8859-1-encoded non-breaking space, which I had to replace with a regular space in order to get grep to search in the file. | |
| S Jun 1, 2015 at 20:24 | history | suggested | kenorb | CC BY-SA 3.0 | Improving post formatting. |
| Jun 1, 2015 at 20:18 | review | Suggested edits | |||
| S Jun 1, 2015 at 20:24 | |||||
| Dec 8, 2014 at 21:30 | history | answered | zzapper | CC BY-SA 3.0 |