[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: merged regex with glibc
From: |
Paolo Bonzini |
Subject: |
Re: merged regex with glibc |
Date: |
Fri, 09 Jan 2009 15:15:57 +0100 |
User-agent: |
Thunderbird 2.0.0.19 (Macintosh/20081209) |
Eric Blake wrote:
> According to Paolo Bonzini on 1/9/2009 1:59 AM:
>> I applied the attached three patches to sync with glibc and fix two
>> relatively serious bug.
>
> Is it easy to extract one of these bugs into something that regex.m4 can
> check for, in order to decide whether to replace glibc regex as too buggy?
Yes: you can check if matching "o$($|.)" against "o\n" crashes.
But I'm not sure it is desirable, because gnulib regex is much more
crippled than glibc regex (no collation elements). For example gnulib
regex will match "llave" against /^[a-l]....$/ in a Spanish locale, and
will not match "Ã…rhus" against /^[.AA.]rhus$/ in a Danish locale.
Paolo