GNU bug report logs - #38223
grep >=2.28 cannot handle -wF correctly under LANG=ja_JP.eucjp

Previous Next

Package: grep;

Reported by: "NIDE, Naoyuki" <nide <at> ics.nara-wu.ac.jp>

Date: Fri, 15 Nov 2019 19:54:02 UTC

Severity: normal

Tags: moreinfo

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #24 received at 38223-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: "NIDE, Naoyuki" <nide <at> ics.nara-wu.ac.jp>
Cc: 38223-done <at> debbugs.gnu.org
Subject: Re: bug#38223: grep >=2.28 cannot handle -wF correctly under
 LANG=ja_JP.eucjp
Date: Sat, 16 Nov 2019 11:00:38 -0800
On Sat, Nov 16, 2019 at 9:34 AM Jim Meyering <jim <at> meyering.net> wrote:
> On Fri, Nov 15, 2019 at 11:54 AM NIDE, Naoyuki <nide <at> ics.nara-wu.ac.jp> wrote:
> > echo ba | LANG=ja_JP.eucjp grep -F -w a
> > outputs ba, but should output nothing.
>
> Thank you for that report. It is reproducible for me on Fedora 30.
> Here is a fix, but the commit is incomplete: I am still in the process
> of preparing a test case and the NEWS entry.
> Will also fix the erroneous comment just below in a separate patch.

I've pushed the complete fix here:
https://git.savannah.gnu.org/cgit/grep.git/commit/?id=090a4dbe03951e427f03f83be424caacc3303799

I've also fixed the comment and a variable name and updated gnulib to latest.




This bug report was last modified 5 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.