summaryrefslogtreecommitdiff
path: root/NEWS
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 /NEWS
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 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 995d14ef..3085b2a6 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,11 @@ GNU grep NEWS -*- outline -*-
when running on 32-bit x86 and ARM hosts using glibc 2.34+.
[bug introduced in grep 3.9]
+ grep -P no longer fails to match patterns using negated classes
+ like \D or \W when linked with PCRE2 10.34 or newer.
+ [bug introduced in grep 3.8]
+
+
** Changes in behavior
grep --version now prints a line describing the version of PCRE2 it uses.