help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: case-independent character range match bug, flex 2.5.25


From: Bruce Lilly
Subject: Re: case-independent character range match bug, flex 2.5.25
Date: Sun, 15 Dec 2002 16:16:55 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130

Bruce Lilly wrote:
When given the -i option, flex not only treats upper- and
lower-case letters identically as individual characters,
it botches ranges if a specific alphabetic character is
used in specifying a range:
[...]
dtext   ([\001-\010\013\014\016-\037!-Z^-\177])
[...]

I can work around this with
dtext   (address@hidden)
but the current flex behavior is counter-intuitive.
Ideally, -i should cause character equivalence only
for A-Z vs. a-z within the first 128 characters. True
case-independence for all 8-bit characters might well
be either horribly expensive (run-time ctype tests of
each input byte) or impossible (mapping of 8-bit bytes
> 128 may vary with locale at run-time, which may well
be different from the locale when flex is run to create
the .c file).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]