Comment 20 for bug 1547466

Revision history for this message
teo1978 (teo8976) wrote : Re: grep switches into binary mode while processing a text file

Well, I have wily and I am observing this bug all the time (starting from a few months ago), or at least I was told that what I'm observing was a duplicate of this bug.

What I see is that when I grep text files, randomly (but the same files will consistently produce the same results) text files are processed like binary files, meaning that the output is
  Binary file xxxx.txt matches
rather than the line of text with the match.

Most of the times, text files that are incorrectly processed as binary are ISO-8859-whatever encoded while files that are matched like text as expected are utf8-encoded (my locale is utf8). However, I tried with two files I created from scratch, one utf-8 and the other iso-8859, and I couldn't reproduce the issue at will.