From: Justin Viiret Date: Wed, 25 Nov 2015 03:53:27 +0000 (+1100) Subject: Update defn of class [:punct:] for PCRE 8.38 X-Git-Tag: v4.1.0^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9b7e806b1ae0067a45f952fb68b77196dc974b0;p=thirdparty%2Fvectorscan.git Update defn of class [:punct:] for PCRE 8.38 --- diff --git a/src/parser/Utf8ComponentClass.cpp b/src/parser/Utf8ComponentClass.cpp index 21707902..b6b161e8 100644 --- a/src/parser/Utf8ComponentClass.cpp +++ b/src/parser/Utf8ComponentClass.cpp @@ -129,13 +129,9 @@ CodePointSet getPredefinedCodePointSet(PredefinedClass c, case CLASS_XPUNCT: { // Everything with the P (punctuation) property, plus code points in S // (symbols) that are < 128. - // NOTE: PCRE versions 8.37 and earlier erroneously use 256 as the - // cut-off here, so we are compatible with that for now. PCRE bug #1718 - // tracks this; once PCRE 8.38 is released we should correct this - // behaviour. CodePointSet rv = getUcpP(); CodePointSet symbols = getUcpS(); - symbols.unsetRange(256, MAX_UNICODE); + symbols.unsetRange(128, MAX_UNICODE); rv |= symbols; return rv; }