grep/pcre2: better support invalid UTF-8 haystacks
[git/gitster.git] / t / helper / test-pcre2-config.c
blob5258fdddba0eb36829c04216fbb71b1a196810d0
1 #include "test-tool.h"
2 #include "cache.h"
3 #include "grep.h"
5 int cmd__pcre2_config(int argc, const char **argv)
7 if (argc == 2 && !strcmp(argv[1], "has-PCRE2_MATCH_INVALID_UTF")) {
8 int value = PCRE2_MATCH_INVALID_UTF;
9 return !value;
11 return 1;