GNU bug report logs - #18762
[PATCH] dfa: don't consider RE_DOT_NEWLINE and RE_DOT_NOT_NULL in matching with a bracket expression

Previous Next

Package: grep;

Reported by: Norihiro Tanaka <noritnk <at> kcn.ne.jp>

Date: Sat, 18 Oct 2014 12:41:03 UTC

Severity: normal

Tags: patch

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: Jim Meyering <jim <at> meyering.net>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
Cc: 18762 <at> debbugs.gnu.org
Subject: bug#18762: [PATCH] dfa: don't consider RE_DOT_NEWLINE and RE_DOT_NOT_NULL in matching with a bracket expression
Date: Sat, 18 Oct 2014 10:06:33 -0700
On Sat, Oct 18, 2014 at 5:39 AM, Norihiro Tanaka <noritnk <at> kcn.ne.jp> wrote:
> RE_DOT_NEW_LINE and NOT_NULL work for '.' only in regex.  OTOH, they
> work for MBCSET in addition to '.' in DFA.  This patch adapts the behavior
> of DFA to of regex.
>
> BTW, at the moment, grep and gawk never use match_mb_charset function to
> be fixed by it.

Thank you for the patch. It is clearly correct.
However, it presents a puzzle: does your patch induce any semantic
change in grep?
I.e., is this a bug fix, or simply the removal of code that would have
no effect.
So far, I have been unable to construct a case for which it induces a
semantic change.

On the other hand, this does eliminate a few comparisons,
so there may be a small performance improvement.




This bug report was last modified 10 years and 276 days ago.

Previous Next


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