[Bug 271906] Aparent performance problem with basic and extended regular expressions

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 09 Jun 2023 11:16:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271906

--- Comment #4 from marius@isgate.is ---

So the in-base regex implementation is badly broken -- 

Additional problems (presumably with the regex lib also) are illustrated with
the following:

'þ' is the LATIN1 character THORN (0xfe)

    $ env LC_CTYPE=is_IS.ISO8859-1 grep 'þ'
    grep: trailing backslash (\)

    $ env LC_CTYPE=is_IS.ISO8859-1 sed 's/þ/th/'
    sed: 1: "s/þ/th/": RE error: trailing backslash (\)

    $ env LC_CTYPE=is_IS.ISO8859-1 expr "abcþdef" : '...þ...'
    expr: trailing backslash (\)

Any plans to fix this - or revert the change in in-base regex?

-- 
You are receiving this mail because:
You are the assignee for the bug.