[pcre-dev] [Bug 1879] Unable to create character range with …

Page principale
Supprimer ce message
Auteur: admin
Date:  
À: pcre-dev
Anciens-sujets: [pcre-dev] [Bug 1879] New: Unable to create character range with certain characters in charclass
Sujet: [pcre-dev] [Bug 1879] Unable to create character range with certain characters in charclass
https://bugs.exim.org/show_bug.cgi?id=1879

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX


--- Comment #2 from Philip Hazel <ph10@???> ---
I have investigated further. In PCRE2, both \A and \C give an error if
encountered anywhere in a character class. Perl gives an warning if running in
warning mode, then treats them as literals. PCRE has no facility for warning,
so I think it is right to give an error.

In PCRE1 (8.39) when [\A-\C] is processed, \A is treated as a literal, but \C
throws an error as an invalid end of range. I think it has been like this for a
very long time. \A does cause an error if PCRE_EXTRA is set (which is a bit
like Perl's warning mode). For PCRE2 I decided to turn on the extra checking
always.

At this stage in the life of PCRE1 I do not think it is worth doing anything,
so I am closing this bug.

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