]> git.ipfire.org Git - thirdparty/git.git/blobdiff - grep.c
Merge branch 'jk/commit-graph-cleanup'
[thirdparty/git.git] / grep.c
diff --git a/grep.c b/grep.c
index cd952ef5d3cca5ab66f432736881d98a94323014..9dd290809e6abf6dbc358c0820d1a056170eff3b 100644 (file)
--- a/grep.c
+++ b/grep.c
@@ -421,7 +421,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;