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

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

Re: gawk pb (IGNORECASE)


From: Stepan Kasal
Subject: Re: gawk pb (IGNORECASE)
Date: Tue, 22 Jul 2003 14:23:45 +0200
User-agent: Mutt/1.2.5.1i

Hello,

On Tue, Jul 22, 2003 at 03:30:42PM +0200, Christophe Bisičre wrote:
> I tracked down the problem to the macro BUILD_CHARCLASS_LOOP in 
> regcomp.c:3249.
> 
> For i > 127, trans[i] contains negative numbers. The call to bitset_set (line 
> 3255 in regcomp.c) thus segfaults.

it seems that the right fix would be to change the declaration
        # define RE_TRANSLATE_TYPE char *
to
        # define RE_TRANSLATE_TYPE unsigned char *
in regex.h .

Could you please verify it?

The regex code is taken from GNU libc.  So you could also try to
copy the posix/reg* sources from glibc CVS on sources.redhat.com .
(The CVS has web access, or I could mail you the sources.)

But it's probable that the CVS version will also require the above change.

Thank you for your help with improving gawk,
        Stepan Kasal




reply via email to

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