[pcre-dev] [Bug 1493] New: pcre_study does not include VT in…

Top Page
Delete this message
Author: Justin Viiret
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1493] New: pcre_study does not include VT in starting chars for /\s/
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1493
           Summary: pcre_study does not include VT in starting chars for
                    /\s/
           Product: PCRE
           Version: 8.35
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: justin.viiret@???
                CC: pcre-dev@???



PCRE was updated in version 8.34 to include vertical tab (\x0b) in the set of
characters matched by the \s white space mnemonic. I have noticed that in the
current version, if pcre_study is run on an expression that begins with \s then
\x0b is not included in the set of "starting chars" produced and will not
match.

--------
$ ./pcretest -d -s
PCRE version 8.35 2014-04-04

re> /\s/

...
Starting chars: \x09 \x0a \x0c \x0d \x20
data> \x0b

No match
--------

However, if pcre_study is *not* called, the expression /\s/ will produce a
match against "\x0b".


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email