summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-04-01 13:55:26 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-04-02 09:47:16 -0700
commitc63a0950ff852c94e27d14b6d0eea001eddb7de1 (patch)
tree8d704d100948c3194c174e7d01182a2ffabc0464 /NEWS
parent1d59f1b342e1ec681b87cb21788ec04ebd7a1c75 (diff)
downloadgrep-c63a0950ff852c94e27d14b6d0eea001eddb7de1.tar.gz
grep: fix -P [\d] by fixing \w only if PCRE2 10.43
Our prepass-based fixes for the -P \d bug have caused repeated further bugs. Avoid the need for a prepass, by using PCRE2_UCP only if PCRE2_EXTRA_ASCII_BSD is also supported. Since the -P \w bug was present from grep 2.5 through 3.8 it’s OK if we wait a little longer to fix it. * NEWS: Mention this. * src/pcresearch.c (pcre_pattern_expand_backslash_d}: Remove. Remove its use. (Pcompile): Use PCRE2_UCP only if PCRE2_EXTRA_ASCII_BSD. * tests/pcre-ascii-digits, tests/pcre-utf8-w: Skip tests on older PCRE2 implementations.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 400c2566..6ebade3f 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,14 @@ GNU grep NEWS -*- outline -*-
* Noteworthy changes in release ?.? (????-??-??) [?]
+** Bug fixes
+
+ With -P, patterns like [\d] now work again. The fix relies on PCRE2
+ support for the PCRE2_EXTRA_ASCII_BSD flag planned for PCRE2 10.43.
+ With PCRE2 version 10.42 or earlier, behavior reverts to that of
+ grep 3.8, in that patterns like \w and \b use ASCII rather than
+ Unicode interpretations.
+
* Noteworthy changes in release 3.10 (2023-03-22) [stable]