Re: [PATCH v2 5/9] grep/pcre: prepare locale-dependent tables for icase matching

2015-07-08 Thread Duy Nguyen
On Wed, Jul 8, 2015 at 5:38 PM, Nguyễn Thái Ngọc Duy wrote: > diff --git a/grep.c b/grep.c > index 8fce54f..c79aa70 100644 > --- a/grep.c > +++ b/grep.c > @@ -324,11 +324,13 @@ static void compile_pcre_regexp(struct grep_pat *p, > const struct grep_opt *opt) > int erroffset; > int

[PATCH v2 5/9] grep/pcre: prepare locale-dependent tables for icase matching

2015-07-08 Thread Nguyễn Thái Ngọc Duy
The default tables are usually built with C locale and only suitable for LANG=C or similar. This should make case insensitive search work correctly for all single-byte charsets. Signed-off-by: Nguyễn Thái Ngọc Duy --- grep.c | 7 +-- grep.h