Re: [pcre-dev] [Bug 669] pcrecpp:: QuoteMeta does not behave…

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: 669
CC: pcre-dev
Subject: Re: [pcre-dev] [Bug 669] pcrecpp:: QuoteMeta does not behave as expected when there are embedded null bytes
On Thu, 14 Feb 2008, Craig Silverstein wrote:

> It's not been a goal of QuoteMeta to behave exactly like perl's
> QuoteMeta (Philip: should it be?), so I have no problem special-casing
> our handling of NUL. It's also a much simpler diff (which I include
> below).
>
> Philip, what do you think?


I agree with you. Perl handles NULs in strings happily, I seem to
recall, so this is pretty Perl-compatible. I'll put that patch on in due
course. (Nothing seems urgent at the moment, and I've got other stuff to
do. :-)

Philip

--
Philip Hazel