On 09/15/2011 01:41 PM, Jim Meyering wrote:
> I think a better test is
>
> printf '\xc3' | LC_ALL=en_US.UTF-8 grep '[é]'
>
> Otherwise you're relying on glibc providing a full definition of [[:lower:]].
Good point.
However, I'll do that as a separate patch.
Please try doing that in this one.
> However, this test is already in use in tests/char-class-multibyte as
> a testcase. So if you make the change you need to remove this bit
> from char-class-multibyte.
>
> for LOC in en_US.UTF-8 $LOCALE_FR_UTF8; do
> out=out3-$LOC
> printf '\xc3\n' | LC_ALL=$LOC grep '[é]'> $out
> test $? = 1 || fail=1
> done
>
> I would also do this change quite early, before touching the code.
I would have moved it, but it's not trivial due to the nearby
use of skip_test_, which is changed in another commit.
Just move *all* tests/ commits early. In fact, I suggest that you split
this series in three/four pieces if possible. Splitting out tests/
parts and submitting them separately should be easy, and ensures that
all the early patches in the series are tested right.
Paolo