repo.or.cz
/
git
/
gitster.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
grep/pcre2: better support invalid UTF-8 haystacks
[git/gitster.git]
/
t
/
helper
/
test-pcre2-config.c
blob
5258fdddba0eb36829c04216fbb71b1a196810d0
1
#include
"test-tool.h"
2
#include
"cache.h"
3
#include
"grep.h"
4
5
int
cmd__pcre2_config
(
int
argc
,
const char
**
argv
)
6
{
7
if
(
argc
==
2
&& !
strcmp
(
argv
[
1
],
"has-PCRE2_MATCH_INVALID_UTF"
)) {
8
int
value
=
PCRE2_MATCH_INVALID_UTF
;
9
return
!
value
;
10
}
11
return
1
;
12
}