Merge branch 'cb/skip-utf8-check-with-pcre1'
Make sure the grep machinery does not abort when seeing a payload that is not UTF-8 even when JIT is not in use with PCRE1. * cb/skip-utf8-check-with-pcre1: grep: skip UTF8 checks explicitly
This commit is contained in:
		
							
								
								
									
										2
									
								
								grep.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								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; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Junio C Hamano
					Junio C Hamano