summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-04-10 11:31:58 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-04-10 16:16:08 -0700
commitfd2d0f7165d390ce4b4d08acf25552f6635d9ecb (patch)
treea0dc3f7015d735ab9ad903363869ea6d8fcb0378 /NEWS
parent3b15d738978fb5e4a865f5f6e99a08e8fc840948 (diff)
downloadgrep-fd2d0f7165d390ce4b4d08acf25552f6635d9ecb.tar.gz
grep: improve PCRE2 version output
* src/grep.c: No need to include pcre2.h. (main) [HAVE_LIBPCRE]: Call Pprint_version instead of doing it ourselves. * src/pcresearch.c (Pprint_version): New function. It also checks belatedly for buffer overflow, and says "grep -P uses PCRE2" instead of "Built with PCRE". * tests/version-pcre: Adjust test to match.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 2 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 029aaf1c..3fdf4fe3 100644
--- a/NEWS
+++ b/NEWS
@@ -18,9 +18,9 @@ GNU grep NEWS -*- outline -*-
grep --version now prints a line describing the version of PCRE2 it uses.
For example, it prints this when built with the very latest from git:
- Built with PCRE 10.43-DEV 2023-01-15
+ grep -P uses PCRE2 10.43-DEV 2023-01-15
or this with what's currently available in Fedora 37:
- Built with PCRE 10.40 2022-04-14
+ grep -P uses PCRE2 10.40 2022-04-14
* Noteworthy changes in release 3.10 (2023-03-22) [stable]