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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: "NIDE, Naoyuki" <nide <at> ics.nara-wu.ac.jp>
Subject: bug#38223: closed (Re: bug#38223: grep >=2.28 cannot handle -wF
 correctly under LANG=ja_JP.eucjp)
Date: Sat, 16 Nov 2019 19:01:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

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

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 38223 <at> debbugs.gnu.org.

-- 
38223: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38223
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.

[Message part 3 (message/rfc822, inline)]
From: "NIDE, Naoyuki" <nide <at> ics.nara-wu.ac.jp>
To: bug-grep <at> gnu.org
Subject: grep >=2.28 cannot handle -wF correctly under LANG=ja_JP.eucjp
Date: Sat, 16 Nov 2019 04:06:51 +0900 (JST)
echo ba | LANG=ja_JP.eucjp grep -F -w a
outputs ba, but should output nothing.

NIDE, Naoyuki
nide <at> ics.nara-wu.ac.jp



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.