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.