GNU bug report logs - #17306
grep: skip checking of multibyte character boundary, reaching at eolbyte

Previous Next

Package: grep;

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

Date: Mon, 21 Apr 2014 12:29:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>, 17306-done <at> debbugs.gnu.org
Subject: Re: bug#17306: grep: skip checking of multibyte character boundary,
 reaching at eolbyte
Date: Thu, 24 Apr 2014 17:58:28 -0700
[Message part 1 (text/plain, inline)]
Norihiro Tanaka wrote:
> In dfaexec(), if reaches at eolbyte, we can skip checking of multibyte
> character boundary.  So then process mbp until here.

Thanks, I installed that.  The "mbp = p" assignment can be done 
unconditionally.  Some of the other code in the neighborhood can stand 
some minor cleanups too, so I did that as per the attached patches.


[0001-dfa-simplify-and-be-more-consistent-about-MB_CUR_MAX.patch (text/plain, attachment)]
[0002-dfa-minor-simplification-of-dfaexec.patch (text/plain, attachment)]

This bug report was last modified 11 years and 25 days ago.

Previous Next


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