|
From: | Jim Meyering |
Subject: | Re: [bug #36567] grep -i (case-insensitive) is broken with UTF8 |
Date: | Sat, 02 Jun 2012 22:14:22 +0200 |
Jim Meyering wrote: ... >> I've implemented the above, and have begun testing. >> The testing exposed an additional problem with -F. >> This fails both with and without the complication of multi-byte: >> >> $ i='\xC4\xB0' >> $ printf "$i$i$i$i$i$i$i\n" > in >> $ LC_ALL=C grep "$i" in || echo FAIL >> FAIL That was merely PEBKAC ;-) Of course the 6-byte xC4xB0 fails to match those Turkish I's. I was viewing the search string via: echo "$i" when I should have been doing it like this: printf '%s\n' "$i"
[Prev in Thread] | Current Thread | [Next in Thread] |