Skip to content

Commit 937964f

Browse files
committed
Make pcre2posix_test work when the default newline is not LF.
1 parent 52c0884 commit 937964f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ Change Log for PCRE2 - see also the Git log
22
-------------------------------------------
33

44

5+
Version 10.43 xx-xxx-202x
6+
-------------------------
7+
8+
1. The test program added by change 2 of 10.42 didn't work when the default
9+
newline setting didn't include \n as a newline. One test needed (*LF) to ensure
10+
that it worked.
11+
12+
513
Version 10.42 11-December-2022
614
------------------------------
715

src/pcre2posix_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ number of subject strings, terminated by NULL. Some tests share data, but use
5858
different flags. */
5959

6060
static const char *data0_1[] = { "posix", "lower posix", "upper POSIX", NULL };
61-
static const char *data2_3[] = { "^(cat|dog)", "catastrophic\ncataclysm",
61+
static const char *data2_3[] = { "(*LF)^(cat|dog)", "catastrophic\ncataclysm",
6262
"dogfight", "no animals", NULL };
6363
static const char *data4[] = { "*badpattern", NULL };
6464

0 commit comments

Comments
 (0)