[pcre-dev] [Bug 1032] With MULTILINE option, cannot correct…

Góra strony
Delete this message
Autor: Philip Hazel
Data:  
Dla: pcre-dev
Temat: [pcre-dev] [Bug 1032] With MULTILINE option, cannot correctly handle searching for $ over CRLF
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1032

Philip Hazel <ph10@???> changed:

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





--- Comment #4 from Philip Hazel <ph10@???> 2010-11-03 18:39:00 ---
> I have made a note to include some of this information in the
> documentation somewhere. I'll close the bug when I've done that.


While checking this all out, I discovered two bugs in pcretest, and one in the
pcredemo demonstration program, so it has been a useful exercise! I added a few
words to the pcreapi documentation, and quite a lot of code to pcredemo, which
was not handling the case when CRLF is a newline sequence at all. It now
illustrates the right way to do it using the public API with, I hope,
sufficient comments to make it clear what is going on. In pcretest, the case of
(*CRLF) had been overlooked, and in certain UTF-8 cases, it could loop, owing
to an idiotic piece of mad code.

The fixes are now committed, so I'm closing this issue.


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