bug-grep
[Top][All Lists]
Advanced

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

Re: [PATCH 2/2] tests: add testcase for previous fix


From: Paul Eggert
Subject: Re: [PATCH 2/2] tests: add testcase for previous fix
Date: Thu, 23 Sep 2010 09:19:26 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

On 09/23/10 04:52, Paolo Bonzini wrote:
> Or better, we're at glibc's mercy:
> 
> $ LC_ALL=cs_CZ.UTF-8 devel/grep/+build/src/grep -E '[A-Z]' in
> 00a
> 00g
> 00A
> 00G
> 00Z
> 
> Yay for yet another definition of range expressions.

Can we fix things so that we're not at glibc's mercy, even there?
We could preprocess the regular expression [A-Z], and turn it into
[ABCDEFGHIJKLMNOPQRSTUVWXYZ], before we hand it off to glibc.
POSIX would allow this behavior, and users would prefer it.

This could be done in a gnulib module, so that other GNU programs
could also use the fix.



reply via email to

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