bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16912: [PATCH] no longer use CSET for non-UTF8 locale in DFA engine


From: Paolo Bonzini
Subject: bug#16912: [PATCH] no longer use CSET for non-UTF8 locale in DFA engine
Date: Wed, 05 Mar 2014 08:59:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Il 05/03/2014 00:12, Norihiro Tanaka ha scritto:
First, I also thoutht such a case.  But perhaps it's no problem, because
DFA will never come across CSET on second byte in Shift_JIS.

  "grep -i A" -> [Aa] -> CSET
  "grep -i $"\x82A" -> [$"\x82\x82A"$"\x82\x82"] -> \x82 A CAT \x82 \x82 CAT OR

Laster will be never \x82 [A\x82] -> \x82 CSET CAT.

What about these two commands:

   grep [a]
   grep -i A

Would they match \x82\x61 ("B", U+0FF22) with your patch?  And without it?

Paolo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]