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

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

Re: grep \b not i18n-d after backreference


From: Stepan Kasal
Subject: Re: grep \b not i18n-d after backreference
Date: Fri, 27 Aug 2004 11:43:14 +0200
User-agent: Mutt/1.4.1i

Hello,

On Fri, Aug 27, 2004 at 01:40:06AM +0200, Joakim Lundborg wrote:
> My locale is sv_SE.ISO-8859-1.
> This is what I get in grep 2.5.1:
> 
> test.txt:
> t t?
> t t
> grep "(t) \1\b" test.txt
> Result:
> t t?
> t t

I tested this, and it works for me.  (I used LC_ALL, to be sure that
all locale categories are consistent.)

The problem is probably in GNU libc.  I use glibc-2.3.3-27 on a Red
Hat derived system (Fedore, Whitebox, ???) and glibc-2.3.2 on a ROCK
GNU/Linux system, and it works for me.

If you use an older version, an upgrade should help.

If you are not brave enough to upgrade libc, you can try recompiling
grep, using ./configure --with-included-regex, it might help.
(It would help if the bug is in regex code, not in other parts of libc.)

Good luck,
        Stepan Kasal





reply via email to

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