[pcre-dev] [Bug 2153] New: Compile error for pattern [[:asci…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2153] New: Compile error for pattern [[:ascii:]-]
https://bugs.exim.org/show_bug.cgi?id=2153

            Bug ID: 2153
           Summary: Compile error for pattern [[:ascii:]-]
           Product: PCRE
           Version: 10.23 (PCRE2)
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: mail@???
                CC: pcre-dev@???


Since PCRE2 version 10.23, the pattern "[[:ascii:]-]" is not accepted anymore:
"invalid range in character class"

Perl accepts it without warning. I think the pattern should be accepted if the
'-' is the last character in the sequence.

The bug has been introduced with this change:

3.
...
  (g) A hyphen appearing immediately after a POSIX character class (for example
      /[[:ascii:]-z]/) now generates an error. Perl does accept this as a
      literal, but gives a warning, so it seems best to fail it in PCRE.


--
You are receiving this mail because:
You are on the CC list for the bug.