Re: [PATCH v2 7/9] grep/pcre: support utf-8

2015-07-11 Thread Plamen Totev
Nguyễn Thái Ngọc Duy  writes: > In the previous change in this function, we add locale support for > single-byte encodings only. It looks like pcre only supports utf-* as > multibyte encodings, the others are left in the cold (which is > fine). We need to enable PCRE_UTF8 so pcre can parse the s

[PATCH v2 7/9] grep/pcre: support utf-8

2015-07-08 Thread Nguyễn Thái Ngọc Duy
In the previous change in this function, we add locale support for single-byte encodings only. It looks like pcre only supports utf-* as multibyte encodings, the others are left in the cold (which is fine). We need to enable PCRE_UTF8 so pcre can parse the string correctly before folding case. Not