Skip to content

Commit 3103b8f

Browse files
committed
Final file tidies for 10.40
1 parent 13be26a commit 3103b8f

26 files changed

+177
-130
lines changed

AUTHORS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Email domain: gmail.com
88
Retired from University of Cambridge Computing Service,
99
Cambridge, England.
1010

11-
Copyright (c) 1997-2021 University of Cambridge
11+
Copyright (c) 1997-2022 University of Cambridge
1212
All rights reserved
1313

1414

@@ -19,7 +19,7 @@ Written by: Zoltan Herczeg
1919
Email local part: hzmester
2020
Emain domain: freemail.hu
2121

22-
Copyright(c) 2010-2021 Zoltan Herczeg
22+
Copyright(c) 2010-2022 Zoltan Herczeg
2323
All rights reserved.
2424

2525

@@ -30,7 +30,7 @@ Written by: Zoltan Herczeg
3030
Email local part: hzmester
3131
Emain domain: freemail.hu
3232

33-
Copyright(c) 2009-2021 Zoltan Herczeg
33+
Copyright(c) 2009-2022 Zoltan Herczeg
3434
All rights reserved.
3535

3636
####

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,13 +1056,13 @@ IF(MSVC AND INSTALL_MSVC_PDB)
10561056
INSTALL(FILES ${PROJECT_BINARY_DIR}/pcre2-8.pdb
10571057
${PROJECT_BINARY_DIR}/pcre2-16.pdb
10581058
${PROJECT_BINARY_DIR}/pcre2-32.pdb
1059-
${PROJECT_BINARY_DIR}/pcre2-posix.pdb
1059+
${PROJECT_BINARY_DIR}/pcre2-posix.pdb
10601060
DESTINATION bin
10611061
CONFIGURATIONS RelWithDebInfo)
10621062
INSTALL(FILES ${PROJECT_BINARY_DIR}/pcre2-8d.pdb
10631063
${PROJECT_BINARY_DIR}/pcre2-16d.pdb
10641064
${PROJECT_BINARY_DIR}/pcre2-32d.pdb
1065-
${PROJECT_BINARY_DIR}/pcre2-posixd.pdb
1065+
${PROJECT_BINARY_DIR}/pcre2-posixd.pdb
10661066
DESTINATION bin
10671067
CONFIGURATIONS Debug)
10681068
ENDIF(MSVC AND INSTALL_MSVC_PDB)

ChangeLog

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Change Log for PCRE2
22
--------------------
33

44

5-
Version 10.40-RC1 xx-xxx-2021
6-
-----------------------------
5+
Version 10.40 15-April-2022
6+
---------------------------
77

88
1. Merged patch from @carenas (GitHub #35, 7db87842) to fix pcre2grep incorrect
99
handling of multiple passes.
@@ -39,8 +39,8 @@ pcre2_substitute(), and the replacement argument of the latter, if the pointer
3939
is NULL and the length is zero, treat as an empty string. Apparently a number
4040
of applications treat NULL/0 in this way.
4141

42-
14. Added support for Bidi_Class and a number of binary Unicode properties,
43-
including Bidi_Control.
42+
14. Added support for Bidi_Class and a number of binary Unicode properties,
43+
including Bidi_Control.
4444

4545
15. Fix some minor issues raised by clang sanitize.
4646

@@ -58,13 +58,13 @@ including Bidi_Control.
5858
(c) Changed \p{scriptname} from being the same as \p{sc:scriptname} to being
5959
the same as \p{scx:scriptname} because this change happened in Perl at
6060
release 5.26.
61-
62-
(d) The standard Unicode 4-letter abbreviations for script names are now
61+
62+
(d) The standard Unicode 4-letter abbreviations for script names are now
6363
recognized.
64-
64+
6565
(e) In accordance with Unicode and Perl's "loose matching" rules, spaces,
66-
hyphens, and underscores are ignored in property names, which are then
67-
matched independent of case.
66+
hyphens, and underscores are ignored in property names, which are then
67+
matched independent of case.
6868

6969
18. The Python scripts in the maint directory have been refactored. There are
7070
now three scripts that generate pcre2_ucd.c, pcre2_ucp.h, and pcre2_ucptables.c
@@ -83,7 +83,7 @@ Clarke PR#72.
8383

8484
20. Added -LP and -LS listing options to pcre2test.
8585

86-
21. A user discovered that the library names in CMakeLists.txt for MSVC
86+
21. A user discovered that the library names in CMakeLists.txt for MSVC
8787
debugger (PDB) files were incorrect - perhaps never tried for PCRE2?
8888

8989
22. An item such as [Aa] is optimized into a caseless single character match.
@@ -98,12 +98,12 @@ fully read in caseless matching.
9898
24. Fixed an issue affecting recursions in JIT caused by duplicated data
9999
transfers.
100100

101-
25. Merged patch from @carenas (GitHub #96) which fixes some problems with
101+
25. Merged patch from @carenas (GitHub #96) which fixes some problems with
102102
pcre2test and readline/readedit:
103103

104104
* Use the right header for libedit in FreeBSD with autoconf
105105
* Really allow libedit with cmake
106-
* Avoid using readline headers with libedit
106+
* Avoid using readline headers with libedit
107107

108108

109109
Version 10.39 29-October-2021

LICENCE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Email domain: gmail.com
2626
Retired from University of Cambridge Computing Service,
2727
Cambridge, England.
2828

29-
Copyright (c) 1997-2021 University of Cambridge
29+
Copyright (c) 1997-2022 University of Cambridge
3030
All rights reserved.
3131

3232

@@ -37,7 +37,7 @@ Written by: Zoltan Herczeg
3737
Email local part: hzmester
3838
Email domain: freemail.hu
3939

40-
Copyright(c) 2010-2021 Zoltan Herczeg
40+
Copyright(c) 2010-2022 Zoltan Herczeg
4141
All rights reserved.
4242

4343

@@ -48,7 +48,7 @@ Written by: Zoltan Herczeg
4848
Email local part: hzmester
4949
Email domain: freemail.hu
5050

51-
Copyright(c) 2009-2021 Zoltan Herczeg
51+
Copyright(c) 2009-2022 Zoltan Herczeg
5252
All rights reserved.
5353

5454

Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ EXTRA_DIST += \
667667
testdata/testinput23 \
668668
testdata/testinput24 \
669669
testdata/testinput25 \
670+
testdata/testinput26 \
670671
testdata/testinputEBC \
671672
testdata/testoutput1 \
672673
testdata/testoutput2 \
@@ -709,6 +710,7 @@ EXTRA_DIST += \
709710
testdata/testoutput23 \
710711
testdata/testoutput24 \
711712
testdata/testoutput25 \
713+
testdata/testoutput26 \
712714
testdata/testoutputEBC \
713715
testdata/valgrind-jit.supp \
714716
testdata/wintestinput3 \

NEWS

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,38 @@ News about PCRE2 releases
22
-------------------------
33

44

5+
Version 10.40 15-April-2022
6+
---------------------------
7+
8+
This is mostly a bug-fixing and code-tidying release. However, there are some
9+
extensions to Unicode property handling:
10+
11+
* Added support for Bidi_Class and a number of binary Unicode properties,
12+
including Bidi_Control.
13+
14+
* A number of changes to script matching for \p and \P:
15+
16+
(a) Script extensions for a character are now coded as a bitmap instead of
17+
a list of script numbers, which should be faster and does not need a
18+
loop.
19+
20+
(b) Added the syntax \p{script:xxx} and \p{script_extensions:xxx} (synonyms
21+
sc and scx).
22+
23+
(c) Changed \p{scriptname} from being the same as \p{sc:scriptname} to being
24+
the same as \p{scx:scriptname} because this change happened in Perl at
25+
release 5.26.
26+
27+
(d) The standard Unicode 4-letter abbreviations for script names are now
28+
recognized.
29+
30+
(e) In accordance with Unicode and Perl's "loose matching" rules, spaces,
31+
hyphens, and underscores are ignored in property names, which are then
32+
matched independent of case.
33+
34+
As always, see ChangeLog for a list of all changes (also the Git log).
35+
36+
537
Version 10.39 29-October-2021
638
-----------------------------
739

README

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ to the directory where you want the files to be created. This command is a
120120
standard GNU "autoconf" configuration script, for which generic instructions
121121
are supplied in the file INSTALL.
122122

123-
The files in the GitHub repository do not contain "configure". If you have
123+
The files in the GitHub repository do not contain "configure". If you have
124124
downloaded the PCRE2 source files from GitHub, before you can run "configure"
125125
you must run the shell script called autogen.sh. This runs a number of
126126
autotools to create a "configure" script (you must of course have the autotools
@@ -194,10 +194,10 @@ library. They are also documented in the pcre2build man page.
194194

195195
As well as supporting UTF strings, Unicode support includes support for the
196196
\P, \p, and \X sequences that recognize Unicode character properties.
197-
However, only the basic two-letter properties such as Lu are supported.
198-
Escape sequences such as \d and \w in patterns do not by default make use of
199-
Unicode properties, but can be made to do so by setting the PCRE2_UCP option
200-
or starting a pattern with (*UCP).
197+
However, only a subset of Unicode properties are supported; see the
198+
pcre2pattern man page for details. Escape sequences such as \d and \w in
199+
patterns do not by default make use of Unicode properties, but can be made to
200+
do so by setting the PCRE2_UCP option or starting a pattern with (*UCP).
201201

202202
. You can build PCRE2 to recognize either CR or LF or the sequence CRLF, or any
203203
of the preceding, or any of the Unicode newline sequences, or the NUL (zero)
@@ -417,7 +417,7 @@ The "configure" script builds the following files for the basic C library:
417417
. Makefile the makefile that builds the library
418418
. src/config.h build-time configuration options for the library
419419
. src/pcre2.h the public PCRE2 header file
420-
. pcre2-config script that shows the building settings such as CFLAGS
420+
. pcre2-config script that shows the building settings such as CFLAGS
421421
that were set for "configure"
422422
. libpcre2-8.pc )
423423
. libpcre2-16.pc ) data for the pkg-config command
@@ -577,9 +577,9 @@ at build time" for more details.
577577
Making new tarballs
578578
-------------------
579579

580-
The command "make dist" creates two PCRE2 tarballs, in tar.gz and zip formats.
581-
The command "make distcheck" does the same, but then does a trial build of the
582-
new distribution to ensure that it works.
580+
The command "make dist" creates three PCRE2 tarballs, in tar.gz, tar.bz2, and
581+
zip formats. The command "make distcheck" does the same, but then does a trial
582+
build of the new distribution to ensure that it works.
583583

584584
If you have modified any of the man page sources in the doc directory, you
585585
should first run the PrepareRelease script before making a distribution. This
@@ -608,13 +608,13 @@ is available. RunTest outputs a comment when it skips a test.
608608

609609
Many (but not all) of the tests that are not skipped are run twice if JIT
610610
support is available. On the second run, JIT compilation is forced. This
611-
testing can be suppressed by putting "nojit" on the RunTest command line.
611+
testing can be suppressed by putting "-nojit" on the RunTest command line.
612612

613613
The entire set of tests is run once for each of the 8-bit, 16-bit and 32-bit
614614
libraries that are enabled. If you want to run just one set of tests, call
615615
RunTest with either the -8, -16 or -32 option.
616616

617-
If valgrind is installed, you can run the tests under it by putting "valgrind"
617+
If valgrind is installed, you can run the tests under it by putting "-valgrind"
618618
on the RunTest command line. To run pcre2test on just one or more specific test
619619
files, give their numbers as arguments to RunTest, for example:
620620

@@ -911,4 +911,4 @@ The distribution should contain the files listed below.
911911
Philip Hazel
912912
Email local part: Philip.Hazel
913913
Email domain: gmail.com
914-
Last updated: 13 April 2022
914+
Last updated: 15 April 2022

configure.ac

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ dnl be defined as -RC2, for example. For real releases, it should be empty.
1010

1111
m4_define(pcre2_major, [10])
1212
m4_define(pcre2_minor, [40])
13-
m4_define(pcre2_prerelease, [-RC1])
14-
m4_define(pcre2_date, [2021-11-09])
13+
m4_define(pcre2_prerelease, [])
14+
m4_define(pcre2_date, [2022-04-14])
1515

1616
# Libtool shared library interface versions (current:revision:age)
17-
m4_define(libpcre2_8_version, [10:4:10])
18-
m4_define(libpcre2_16_version, [10:4:10])
19-
m4_define(libpcre2_32_version, [10:4:10])
20-
m4_define(libpcre2_posix_version, [3:1:0])
17+
m4_define(libpcre2_8_version, [11:0:11])
18+
m4_define(libpcre2_16_version, [11:0:11])
19+
m4_define(libpcre2_32_version, [11:0:11])
20+
m4_define(libpcre2_posix_version, [3:2:0])
2121

2222
# NOTE: The CMakeLists.txt file searches for the above variables in the first
2323
# 50 lines of this file. Please update that if the variables above are moved.

doc/html/README.txt

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,18 @@ Building PCRE2 using autotools
114114
The following instructions assume the use of the widely used "configure; make;
115115
make install" (autotools) process.
116116

117-
To build PCRE2 on system that supports autotools, first run the "configure"
118-
command from the PCRE2 distribution directory, with your current directory set
117+
If you have downloaded and unpacked a PCRE2 release tarball, run the
118+
"configure" command from the PCRE2 directory, with your current directory set
119119
to the directory where you want the files to be created. This command is a
120120
standard GNU "autoconf" configuration script, for which generic instructions
121121
are supplied in the file INSTALL.
122122

123+
The files in the GitHub repository do not contain "configure". If you have
124+
downloaded the PCRE2 source files from GitHub, before you can run "configure"
125+
you must run the shell script called autogen.sh. This runs a number of
126+
autotools to create a "configure" script (you must of course have the autotools
127+
commands installed in order to do this).
128+
123129
Most commonly, people build PCRE2 within its own distribution directory, and in
124130
this case, on many systems, just running "./configure" is sufficient. However,
125131
the usual methods of changing standard defaults are available. For example:
@@ -188,10 +194,10 @@ library. They are also documented in the pcre2build man page.
188194

189195
As well as supporting UTF strings, Unicode support includes support for the
190196
\P, \p, and \X sequences that recognize Unicode character properties.
191-
However, only the basic two-letter properties such as Lu are supported.
192-
Escape sequences such as \d and \w in patterns do not by default make use of
193-
Unicode properties, but can be made to do so by setting the PCRE2_UCP option
194-
or starting a pattern with (*UCP).
197+
However, only a subset of Unicode properties are supported; see the
198+
pcre2pattern man page for details. Escape sequences such as \d and \w in
199+
patterns do not by default make use of Unicode properties, but can be made to
200+
do so by setting the PCRE2_UCP option or starting a pattern with (*UCP).
195201

196202
. You can build PCRE2 to recognize either CR or LF or the sequence CRLF, or any
197203
of the preceding, or any of the Unicode newline sequences, or the NUL (zero)
@@ -411,7 +417,7 @@ The "configure" script builds the following files for the basic C library:
411417
. Makefile the makefile that builds the library
412418
. src/config.h build-time configuration options for the library
413419
. src/pcre2.h the public PCRE2 header file
414-
. pcre2-config script that shows the building settings such as CFLAGS
420+
. pcre2-config script that shows the building settings such as CFLAGS
415421
that were set for "configure"
416422
. libpcre2-8.pc )
417423
. libpcre2-16.pc ) data for the pkg-config command
@@ -571,9 +577,9 @@ at build time" for more details.
571577
Making new tarballs
572578
-------------------
573579

574-
The command "make dist" creates two PCRE2 tarballs, in tar.gz and zip formats.
575-
The command "make distcheck" does the same, but then does a trial build of the
576-
new distribution to ensure that it works.
580+
The command "make dist" creates three PCRE2 tarballs, in tar.gz, tar.bz2, and
581+
zip formats. The command "make distcheck" does the same, but then does a trial
582+
build of the new distribution to ensure that it works.
577583

578584
If you have modified any of the man page sources in the doc directory, you
579585
should first run the PrepareRelease script before making a distribution. This
@@ -602,13 +608,13 @@ is available. RunTest outputs a comment when it skips a test.
602608

603609
Many (but not all) of the tests that are not skipped are run twice if JIT
604610
support is available. On the second run, JIT compilation is forced. This
605-
testing can be suppressed by putting "nojit" on the RunTest command line.
611+
testing can be suppressed by putting "-nojit" on the RunTest command line.
606612

607613
The entire set of tests is run once for each of the 8-bit, 16-bit and 32-bit
608614
libraries that are enabled. If you want to run just one set of tests, call
609615
RunTest with either the -8, -16 or -32 option.
610616

611-
If valgrind is installed, you can run the tests under it by putting "valgrind"
617+
If valgrind is installed, you can run the tests under it by putting "-valgrind"
612618
on the RunTest command line. To run pcre2test on just one or more specific test
613619
files, give their numbers as arguments to RunTest, for example:
614620

@@ -905,4 +911,4 @@ The distribution should contain the files listed below.
905911
Philip Hazel
906912
Email local part: Philip.Hazel
907913
Email domain: gmail.com
908-
Last updated: 29 October 2021
914+
Last updated: 15 April 2022

doc/html/pcre2api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,8 +2640,8 @@ <h1>pcre2api man page</h1>
26402640
<i>startoffset</i>. The length and offset are in code units, not characters.
26412641
That is, they are in bytes for the 8-bit library, 16-bit code units for the
26422642
16-bit library, and 32-bit code units for the 32-bit library, whether or not
2643-
UTF processing is enabled. As a special case, if <i>subject</i> is NULL and
2644-
<i>length</i> is zero, the subject is assumed to be an empty string. If
2643+
UTF processing is enabled. As a special case, if <i>subject</i> is NULL and
2644+
<i>length</i> is zero, the subject is assumed to be an empty string. If
26452645
<i>length</i> is non-zero, an error occurs if <i>subject</i> is NULL.
26462646
</P>
26472647
<P>

doc/html/pcre2pattern.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ <h1>pcre2pattern man page</h1>
776776
sequences are of course limited to testing characters whose code points are
777777
less than U+0100 and U+10000, respectively. In 32-bit non-UTF mode, code points
778778
greater than 0x10ffff (the Unicode limit) may be encountered. These are all
779-
treated as being in the Unknown script and with an unassigned type.
779+
treated as being in the Unknown script and with an unassigned type.
780780
</P>
781781
<P>
782782
Matching characters by Unicode property is not fast, because PCRE2 has to do a
@@ -821,8 +821,8 @@ <h1>pcre2pattern man page</h1>
821821
<P>
822822
Unassigned characters (and in non-UTF 32-bit mode, characters with code points
823823
greater than 0x10FFFF) are assigned the "Unknown" script. Others that are not
824-
part of an identified script are lumped together as "Common". The current list
825-
of recognized script names and their 4-character abbreviations can be obtained
824+
part of an identified script are lumped together as "Common". The current list
825+
of recognized script names and their 4-character abbreviations can be obtained
826826
by running this command:
827827
<pre>
828828
pcre2test -LS

0 commit comments

Comments
 (0)