summaryrefslogtreecommitdiffstats
path: root/grep.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-06-25 07:22:33 +0200
committerJunio C Hamano <gitster@pobox.com>2016-07-01 12:44:57 -0700
commit9d9babb84d45234132f3cb1f4527ce1106e3d2ec (patch)
treed087573f2adde39ba70c0c864a01962fbbe8e67c /grep.h
parente944d9d932b3653debcfdd16eec2721eed0670e5 (diff)
downloadgit-9d9babb84d45234132f3cb1f4527ce1106e3d2ec.tar.gz
git-9d9babb84d45234132f3cb1f4527ce1106e3d2ec.tar.xz
grep/pcre: prepare locale-dependent tables for icase matching
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 <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.h')
-rw-r--r--grep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/grep.h b/grep.h
index 95f197a8d..cee4357b1 100644
--- a/grep.h
+++ b/grep.h
@@ -48,6 +48,7 @@ struct grep_pat {
regex_t regexp;
pcre *pcre_regexp;
pcre_extra *pcre_extra_info;
+ const unsigned char *pcre_tables;
kwset_t kws;
unsigned fixed:1;
unsigned ignore_case:1;