summaryrefslogtreecommitdiff
path: root/src/kwsearch.c
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2023-04-20 18:37:20 -0700
committerJim Meyering <meyering@meta.com>2023-04-30 00:01:41 -0700
commitfa4e6c8a771554111c5890c5db2c80214cc2bcc9 (patch)
tree6536de0a9910508d8036d3b62677e9a699daf93b /src/kwsearch.c
parent8d3afeebcc2bdf2e8fd4ed1c5256e54be95f36a1 (diff)
downloadgrep-fa4e6c8a771554111c5890c5db2c80214cc2bcc9.tar.gz
pcre: work around a PCRE2_MATCH_INVALID_UTF bug
PCRE2 has a bug when using PCRE2_MATCH_INVALID_UTF: it would sometimes fail to match patterns using negative classes like \W and \D. * NEWS (Bug fixes): Mention it. * src/pcre2search.c: Restrict impact of the bug. Do not use the problematic flag with broken versions of PCRE2. Also, generate locale tables only for single-byte locales, as the PCRE2 documentation recommends this. * tests/Makefile.am (TESTS): Add the file name * tests/pcre-utf8-bug224: New file, to test for this.
Diffstat (limited to 'src/kwsearch.c')
0 files changed, 0 insertions, 0 deletions