]> git.ipfire.org Git - thirdparty/git.git/blobdiff - grep.c
Merge branch 'ew/hashmap'
[thirdparty/git.git] / grep.c
diff --git a/grep.c b/grep.c
index 05d31c2bccfbc878c9d00b849ce52b1ad8187fb8..0bb4cbd3d82ceef5517905a35a7f6820b7fb555a 100644 (file)
--- a/grep.c
+++ b/grep.c
@@ -406,7 +406,7 @@ static void compile_pcre1_regexp(struct grep_pat *p, const struct grep_opt *opt)
 static int pcre1match(struct grep_pat *p, const char *line, const char *eol,
                regmatch_t *match, int eflags)
 {
-       int ovector[30], ret, flags = 0;
+       int ovector[30], ret, flags = PCRE_NO_UTF8_CHECK;
 
        if (eflags & REG_NOTBOL)
                flags |= PCRE_NOTBOL;