Bug 8314 - mawk's regexps don't conform to POSIX
Summary: mawk's regexps don't conform to POSIX
Status: CLOSED WONTFIX
Alias: None
Product: Sisyphus
Classification: Development
Component: mawk (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-21 16:36 MSD by Kirill A. Shutemov
Modified: 2008-02-15 23:19 MSK (History)
2 users (show)

See Also:


Attachments
Patch by Aleksey Cheusov (10.11 KB, patch)
2005-10-21 16:37 MSD, Kirill A. Shutemov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill A. Shutemov 2005-10-21 16:36:54 MSD
Aleksey Cheusov:

Hi.
As you may know, mawk's internal regular expression engine
doesn't support character classes and therefore is not conformant
to POSIX regexp.

I've written patch which builds mawk with external regexp engine.
There are lots of different regexp engines world-wide.
You can use any of them
On most modern systems system-wide regexp engine also conforms to POSIX.
As a result mawk conforms to POSIX regexp, if you build
it with appropriate regexp engine like this.

# regexec/regcomp functions from libc will be used
./configure && make

# TRE implementation will be used
CFLAGS='-O3 -I/usr/include/tre' LDFLAGS='-ltre' ./configure && make

Whether UTF-8 support is provided or not
also depends on external regexp library.

If you find bugs in it, let me know.

The patch is here.

Do not forget to run antoconf
to create new 'configure' script.
Comment 1 Kirill A. Shutemov 2005-10-21 16:37:56 MSD
Created attachment 1209 [details]
Patch by Aleksey Cheusov
Comment 2 Kirill A. Shutemov 2005-10-21 16:38:22 MSD
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314323
Comment 3 Slava Semushin 2006-12-14 15:35:02 MSK
Пакет mawk отправился в orphaned в начале ноября
(http://lists.altlinux.org/pipermail/sisyphus-cybertalk/2006-November/003951.html).
Перевешиваю на никого...
Comment 4 Leutin 2008-02-15 23:19:50 MSK
Пакета давно нет в сизифе.