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

2016-01-05 Thread Paul Eggert
Norihiro Tanaka wrote: I see that it is good idea, but I propose minor change for your fix. Perhaps, it will be what you want. I think the problem here is that the code was not computing unibyte_mask correctly; that is, the comment for unibyte_mask is correct, and usage of unibyte_mask is co

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

2016-01-05 Thread Kamil Dudka
On Wednesday 30 December 2015 19:25:04 Paul Eggert 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. Thanks for the fixup! I can confirm that it re