This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug regex/10290] using REG_ICASE can break ranges


------- Additional Comments From eblake at redhat dot com  2010-09-21 15:30 -------
In which locale?  In the POSIX locale with an ASCII (or similar) encoding, [C-a]
is well defined:

$ LC_ALL=C sed -n '/[C-a]/p' /dev/null
$ LC_ALL=en_US.UTF-8 sed -n '/[C-a]/p' /dev/null
sed: -e expression #1, char 7: Invalid range end

And since range expressions are only well-defined in the POSIX locale, the point
still remains that the case-insensitive flag is messing things up:

$ LC_ALL=C sed -n '/[C-a]/I p' /dev/null
sed: -e expression #1, char 9: Invalid range end

Also, the resolution of this bug should consider
http://sources.redhat.com/bugzilla/show_bug.cgi?id=12045, which is unrelated to
the REG_ICASE flag.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10290

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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