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
