This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TOPLEVEL PATCH: accept more x86 variants


On May 15, 2003, "Joseph S. Myers" <jsm28@cam.ac.uk> wrote:

> If they do make such a set where 0-9 are not consecutive

It's not about the characters being consecutive.  [a-z] includes
characters that don't match ch >= 'a' && ch <= 'z' in some locales,
because capital letters, accented letters and such are considered part
of the range as mandated by the locale-specific collating order.  One
could imagine that some odd locale might have other characters
interspersed with digits (maybe alternate characters for the digits?)
in the collating order, which would make the expression not only more
inclusive than it was meant to be on such locales, but also get the
regexp to change meanings depending on the locale in effect, which is
a very bad idea.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]