Comment 25 for bug 1547466

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

> This has been the case for a long time.

Nope. Just a few months.

> If you try to show non-UTF-8
> data in an UTF-8 locale you'll just see garbage (or other encoding
> mismatches)

That doesn't mean that the file should be processed as binary. Also, previous to the regression, grep would work as expected. I guess it might fail to find matches of non-ascii characters encoded in a non-utf8 encoding (though I don't see why it couldn't decode each file according to its encoding and match the contents unicode-wise), but when grepping for "foo" it would find matches for the string "foo" both in utf8-encoded files and in iso8859-encoded files.

> This bug is about switching to binary mode in the 'C' locale only.

Then I wonder why somebody marked the one I reported as duplicate of this one