[pcre-dev] [Bug 2315] PCRE2_NEWLINE_ANYCRLF appears to be n…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2315] PCRE2_NEWLINE_ANYCRLF appears to be nonfunctional
https://bugs.exim.org/show_bug.cgi?id=2315

--- Comment #4 from Rich Siegel <siegel@???> ---
Aaaagh, I just realized that my test code has a bug in it.

The declaration of 'pattern' should be written:

        const uint16_t          pattern[] = { 'a', '\\', 'r', 0 }; // "a\r"


Alternatively you could use:

        const uint16_t          pattern[] = { '.', '+', '\\', 'r', 0 }; //
".+\r"


With that change you should be able to reproduce the issue accurately.

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