GNU bug report logs - #18685
[PATCH] dfa: treat a multibyte character even with constraints

Previous Next

Package: grep;

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

Date: Sat, 11 Oct 2014 03:30:02 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: bug-grep <at> gnu.org
Subject: [PATCH] dfa: treat a multibyte character even with constraints
Date: Sat, 11 Oct 2014 12:11:02 +0900
[Message part 1 (text/plain, inline)]
Set constraint, may be caused wrong result in non-UTF8 locales.  Below
fails in a current master.

  $ pattern=$(printf '^x\|\244\263')
  $ printf '\263\244\263\244\n' |
     env LC_ALL=ja_JP.eucJP src/grep "$pattern" && echo FAIL

skip_remains_mb runs in only state 0, but it's wrong.  Set constraint,
may transit to a state besides state 0 after failure.
[0001-dfa-treat-a-multibyte-character-even-with-constraint.patch (text/plain, attachment)]

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

Previous Next


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