Subject: Re: bug#20526: grep BUG: text file is detected as binary

From: Norihiro Tanaka <[email-masked]>
Date: Fri, 01 Jan 2016 00:23:11 +0900

On Wed, 30 Dec 2015 19:25:04 -0800
Paul Eggert <[email-masked]> wrote:

> I installed into Savannah a patch (attached) that should fix this
> problem in typical cases, and am boldly marking the bug as done.
> Please give the fix a try if you have the time. Thanks.

I get following output after apply the patch.  Is it expected?

$ printf 'a\na\377\na\n' | LANG=en_US.utf8 src/grep a
a
Binary file (standard input) matches