[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] dfa: fix single byte character ranges
From: |
Dmitry V. Levin |
Subject: |
Re: [PATCH] dfa: fix single byte character ranges |
Date: |
Thu, 25 Mar 2010 19:01:11 +0300 |
On Thu, Mar 25, 2010 at 01:39:42PM +0100, Paolo Bonzini wrote:
> On 03/25/2010 01:13 PM, Paolo Bonzini wrote:
> >* src/dfa.c (in_coll_range): Fix ordering for second strcoll. Reported
> >by Dmitry V. Levin.
> >* tests/spencer1-locale.awk: Also test single-byte character sets.
> >* THANKS: Add Dmitry.
> >---
> > Rather than adding a specific testcase, I added more locales
> > to the spencer1-locale test.
>
> I pushed this with a NEWS entry.
Thank you for the fix. The bug is not limited to single byte locales,
though:
$ echo 1 | env -i grep '[0-9]'
1
$ echo 1 | env -i LC_COLLATE=en_US.UTF-8 grep '[0-9]'
$ echo 1 | env -i LANG=en_US.UTF-8 grep '[0-9]'
1
Your patch fixes this regression, too.
--
ldv
pgp6f5eQW5UAN.pgp
Description: PGP signature