Subject: Re: bug#38223: grep >=2.28 cannot handle -wF correctly under LANG=ja_JP.eucjp

From: Jim Meyering <[email-masked]>
Date: Sun, 17 Nov 2019 10:55:59 -0800

On Sun, Nov 17, 2019 at 8:28 AM Paul Eggert <[email-masked]> wrote:
> Thanks for fixing that. Although the patch says "[Bug#38223 introduced in grep
> 3.0]", the original bug report is against grep 2.28 and later. Can I take it
> that we tried to fix the bug in 3.0 but the fix was incomplete?

Thanks for noting that. I confirm that 2.10 through 2.27 are fine, and
that this does afflict 2.28, but see it affected no other release
until 3.0. Probably deserves more investigation.

$ for i in grep-*; do echo $i: $(echo ab | LC_CTYPE=ja_JP.eucjp
$i/bin/grep -Fw b); done|sed 's,.*-,,'
2.10:
2.11:
2.12:
2.13:
2.14:
2.15:
2.16:
2.17:
2.18:
2.19:
2.20:
2.21:
2.22:
2.23:
2.24:
2.25:
2.26:
2.27:
2.28: ab
2.3:
2.4:
2.4.1:
2.4.2:
2.5:
2.5.1:
2.5.3:
2.5.4:
2.6:
2.6.1:
2.6.2:
2.6.3:
2.7:
2.8:
2.9:
3.0: ab
3.1: ab
3.2: ab
3.3: ab