bug#60697: GNU grep mishandles \b near encoding errors

2023-01-11 Thread Jim Meyering
On Mon, Jan 9, 2023 at 10:16 PM Paul Eggert wrote: > Here's a shell session illustrating the problem on Fedora 37, which has > GNU grep 3.7. The same bug is still in bleeding-edge GNU grep. > >$ export LC_ALL=en_US.utf8 >$ printf '\300\n' | grep '\b' >grep: (standard input): binary fil

bug#60697: GNU grep mishandles \b near encoding errors

2023-01-09 Thread Paul Eggert
Here's a shell session illustrating the problem on Fedora 37, which has GNU grep 3.7. The same bug is still in bleeding-edge GNU grep. $ export LC_ALL=en_US.utf8 $ printf '\300\n' | grep '\b' grep: (standard input): binary file matches $ printf '\300\n' | grep -P '\b' $ Plain grep fin