GNU bug report logs - #47264
RFE: pcre2 support

Previous Next

Package: grep;

Reported by: Jaroslav Skarvada <jskarvad <at> redhat.com>

Date: Fri, 19 Mar 2021 15:23:01 UTC

Severity: wishlist

Merged with 22345, 40395

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 47264 <at> debbugs.gnu.org (full text, mbox):

From: Jeffrey Walton <noloader <at> gmail.com>
To: L A Walsh <gnu <at> tlinx.org>
Cc: 47264 <at> debbugs.gnu.org
Subject: Re: bug#47264: RFE: pcre2 support
Date: Mon, 5 Apr 2021 04:31:38 -0400
On Mon, Apr 5, 2021 at 4:22 AM L A Walsh <gnu <at> tlinx.org> wrote:
>
> On 2021/03/19 14:04, Paul Eggert wrote:
> > On 3/19/21 8:22 AM, Jaroslav Skarvada wrote:
> >
> >> Please consider adding PCRE2 support.
> >>
> >
> > Patches would be welcome. As I understand it, they're not trivial.
> >
> ---
>     What are differences from 1->2 and wondering why they are
> so non-trivial?  I guess there are some benefits in moving
> to 2?
>
> Mostly curious...

I took a crack at converting grep to PCRE2 a couple of months ago.

There are lots of API differences. I estimate about 80% of the code
was going to be modified or changed for PCRE2. There's also a data
structure that needs to be modified.

I could not find a good document explaining the conversion process
from PCRE to PCRE2. I finally gave up after about 4 hours because I
lacked the necessary PCRE experience.

Someone more experienced with PCRE or PCRE2 can probably perform the
task in a few hours.

Jeff




This bug report was last modified 3 years and 184 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.