|
From: | Paul Eggert |
Subject: | bug#20526: grep BUG: text file is detected as binary |
Date: | Fri, 1 Jan 2016 21:22:54 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
Norihiro Tanaka wrote:
why this check is applied in only multi-byte locale?
Ouch, good point. I missed the possibility of a unibyte encoding where not all bytes are valid unibyte characters. I installed the attached additional patch to fix this, and to test for the bug I recently introduced here.
0001-grep-fix-bug-with-with-invalid-unibyte-sequence.txt
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |