|
From: | Paul Eggert |
Subject: | bug#19230: Help! grepV2.21 treats ISO-8859 text files as if they are binary |
Date: | Sun, 30 Nov 2014 14:02:13 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
Hans Pelleboer wrote:
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!).
What operating system are you running on, and how did you build or import grep? Also, what's your locale? What is the output of the shell command 'locale'?I can see this happening if you are using an UTF-8 locale, as in general ISO-8859 is not valid UTF-8 text. Older versions of 'grep' were less picky in this area, and that might explain the symptoms you observed. With newer versions it's more important for the locale to be compatible with the text file's encoding.
[Prev in Thread] | Current Thread | [Next in Thread] |