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"
