From 553bf8a1dc99e49fdc0a5aef762abd04c53f43b0 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Mon, 19 Feb 2018 17:00:45 +0000 Subject: [PATCH] Oops, forgot about "-C bsr" in previous patch. --- ChangeLog | 3 ++- src/pcre2test.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ccc3134..8651e6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,7 +17,8 @@ groups altogether. Now it shows those that come before any actual captures as 3. Running "pcre2test -C" always stated "\R matches CR, LF, or CRLF only", whatever the build configuration was. It now correctly says "\R matches all Unicode newlines" in the default case when --enable-bsr-anycrlf has not been -specified. +specified. Similarly, running "pcfre2test -C bsr" never produced the result +ANY. Version 10.31 12-February-2018 diff --git a/src/pcre2test.c b/src/pcre2test.c index 40e2161..ad3db2c 100644 --- a/src/pcre2test.c +++ b/src/pcre2test.c @@ -7793,7 +7793,7 @@ if (arg != NULL && arg[0] != CHAR_MINUS) { case CONF_BSR: (void)PCRE2_CONFIG(coptlist[i].value, &optval); - printf("%s\n", optval? "ANYCRLF" : "ANY"); + printf("%s\n", (optval == PCRE2_BSR_ANYCRLF)? "ANYCRLF" : "ANY"); break; case CONF_FIX: