Subject: bug#16927: closed (Re: bug#16927: [PATCH] grep: avoid to add same character to a bracket expression)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 03 Mar 2014 15:32:02 +0000

Your bug report

#16927: [PATCH] grep: avoid to add same character to a bracket expression

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 [email-masked].

-- 
16927: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16927
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#16927: [PATCH] grep: avoid to add same character to a bracket expression
From: Paul Eggert <[email-masked]>
To: Norihiro Tanaka <[email-masked]>, [email-masked]
Date: Mon, 03 Mar 2014 07:31:19 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks, I installed that.

Subject: [PATCH] grep: avoid to add same character to a bracket expression
From: Norihiro Tanaka <[email-masked]>
To: [email-masked]
Date: Mon, 03 Mar 2014 22:13:00 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

Package: grep
Tags: patch

The patch avoids to add same character to a bracket expression in
trivial_case_ignore.  That may be able to generate smaller tokens in
multibyte locales.

For example, FULLWIDTH LATIN CAPITAL LETTER A (ef bd 81) will transform
as below, because multibyte characters in CSET is extended to OR
expressions in DFA.

Before the patch:

[AAa] (where each charactecter is fullwidth)
EF BD CAT 81 CAT EF BD CAT 81 CAT OR EF BC CAT A1 CAT OR

After the patch:

[Aa] (where each charactecter is fullwidth)
EF BD CAT 81 CAT EF BC CAT A1 CAT OR