|
From: | Paolo Bonzini |
Subject: | Re: [PATCH 2/2] tests: add testcase for previous fix |
Date: | Thu, 23 Sep 2010 13:52:30 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.3 |
On 09/23/2010 09:21 AM, Jim Meyering wrote:
This shows the bad-old behavior (grep-2.7 and earlier) note how [A-Z] matches lower case letters: printf '00a\n00g\n00z\n00A\n00G\n00Z\n'> in $ LC_ALL=en_US.UTF-8 /bin/grep -E '[A-Z]' in 00g 00z 00A 00G 00Z With Paolo's change we avoid that common source of confusion: $ LC_ALL=en_US.UTF-8 ./grep -E '[A-Z]' in 00A 00G 00Z
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. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |