This is the mail archive of the
glibc-bugs-regex@sourceware.org
mailing list for the glibc project.
[Bug regex/10290] using REG_ICASE can break ranges
- From: "eblake at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs-regex at sources dot redhat dot com
- Date: 21 Sep 2010 15:30:08 -0000
- Subject: [Bug regex/10290] using REG_ICASE can break ranges
- References: <20090617154705.10290.jbastian@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.