Re: [pcre-dev] \l issue

Pàgina inicial
Delete this message
Autor: Ze'ev Atlas
Data:  
A: pcre-dev@exim.org
Assumpte: Re: [pcre-dev] \l issue

<snip>
/*  90 */    0,    0, -ESC_k,    'l',      0, ESC_n,      0, -ESC_p,

Instead of 'l', there should be 0 (as there is for the L entry below).

If you can confirm that this fixes it, I'll change the master code. (I
am still having Internet issues, so my responses might be slow.)


<snip>I tried your suggestion on z/OS and that seems to have been corrected everything (on EBCDIC).  I then tried on Linux, and found that one of the \L was swallowed in both z/OS and Linux. I figured out that it was swallowed because I did not leave a blank line between the pattern/input groups, so this was a false alarm and my alert on that should be ignored.
It looks like you have nailed the real issue with the  \l.  so it should be corrected in the source code.
I will work now on full EBCDIC test files
Thank you


I slightly modified my tests to add a couple of more fine points.  Here is the input:

< forbid 8W
/\l/I
/\L/I
/\l/I     l
/\L/I     l
/\l/I     l/\L/I     l
/\L/I     l     L
/\L/I     L
/\N{name}/I
/\u/I
/\U/I
/\u/I     L/\U/I     L


Here is the output

< forbid 8W
/\l/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
/\L/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
/\l/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
/\L/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
/\l/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
/\L/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
/\L/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
/\N{name}/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
/\u/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
/\U/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
/\u/IFailed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
Ze'ev Atlas


< forbid 8W

/\l/I

/\L/I

/\l/I
     l

/\L/I
     l

/\l/I
     l
/\L/I
     l

/\L/I
     l
     L

/\L/I
     L

/\N{name}/I

/\u/I

/\U/I

/\u/I
     L
/\U/I
     L


< forbid 8W

/\l/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\L/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\l/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\L/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\l/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\L/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\L/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\N{name}/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\u/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\U/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\u/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

PCRE version 8.37 2015-04-28


< forbid 8W

/\l/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\L/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\l/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\L/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\l/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\L/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\L/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\N{name}/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\u/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\U/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\u/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1