[Bug regex/23393] Handle [a-z] and [A-Z] in consistent portable fashion regardless of locale.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug regex/23393] Handle [a-z] and [A-Z] in consistent portable fashion regardless of locale.

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=23393

--- Comment #31 from Eric Blake <eblake at redhat dot com> ---
(In reply to Florian Weimer from comment #14)

> (In reply to Rich Felker from comment #13)
> > I think bracket range expressions should just always be codepoint ranges.
> > They can't reliably be used for anything else (since the behavior isn't
> > specified), but anything else severely violates the principle of least
> > surprise.
>
> Codepoint-based ranges would address my concerns.
>
> I was just trying to come up with something that would open a backdoor to
> get access to collation-order-based ranges in case they are needed (because
> some people seem to like them).  But I can't see a useful application for
> them, either.

If you NEED collation-order-based range, we could spell it [[.0.]-[.9.]] (that
is, the range between the two collating sequences.

--
You are receiving this mail because:
You are on the CC list for the bug.