bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sed-3.02 bug


From: KAWAMURA Masao
Subject: sed-3.02 bug
Date: Mon, 13 Nov 2000 20:38:05 +0900

Hello,

sed-3.02 does not work with r.e. "a*[a]" , it not match to "a", "aa"...
In sed-3.02/lib/regex.c, from line 4773,

#if 0
                if ((re_opcode_t) p1[3] == exactn
                    && ! ((int) p2[1] * BYTEWIDTH > (int) p1[5]
                          && (p2[2 + p1[5] / BYTEWIDTH]
                              & (1 << (p1[5] % BYTEWIDTH)))))
#else
                if ((re_opcode_t) p1[3] == exactn
                    && ! ((int) p2[1] * BYTEWIDTH > (int) p1[4]
                          && (p2[2 + p1[4] / BYTEWIDTH]
                              & (1 << (p1[4] % BYTEWIDTH)))))
#endif

upper part is correct, and lower part is wrong.
(same bug in glibc was corrected at 1999-08-23.)

Regards.
(Pardon my poor English.)
--
KAWAMURA Masao
Media Lab. Inc.,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]