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 #19 received at 38223 <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 <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 09:34:06 -0800
[Message part 1 (text/plain, inline)]
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.
[grep-Fw-mb-non-utf8.diff (application/octet-stream, attachment)]

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.