]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Update defn of class [:punct:] for PCRE 8.38
authorJustin Viiret <justin.viiret@intel.com>
Wed, 25 Nov 2015 03:53:27 +0000 (14:53 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Sun, 6 Dec 2015 22:08:46 +0000 (09:08 +1100)
src/parser/Utf8ComponentClass.cpp

index 21707902a0e36852f03911caf95fe762f3dafdcf..b6b161e8f3ec748658fe26ba6e32173097e6b541 100644 (file)
@@ -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;
     }