On Mon, Dec 23, 2013 at 3:54 PM, Jim Meyering wrote: ... > Thanks for dotting those 'i's. While there is no risk of buffer > overrun, there would definitely be a problem with the tr_TR locale. > I will resolve it by removing the isascii check and performing > multibyte case conversion to form each [cC] pair. Of course, > that will mean removing the "4 * byte-length-of-search-string" > buffer size limitation. > > I will also add tests based on your examples. Here is the improved patch.