[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 #33 from Eric Blake <eblake at redhat dot com> ---
(In reply to Florian Weimer from comment #32)

> > Well, close to (a), at any rate.  You're looking for Rational Range
> > Interpretation, which has been picked up by several GNU tools already (awk,
> > coreutils, sed, bash, ...)
>
> Yes, I finally found the old discussion, see comment 26. 8-)
>
> Do you know why bash doesn't default to it, and you have to enable it using
> “shopt -s globasciiranges”?

I'm guessing Chet was worried about potential backwards-compatibility issues,
so he made an option rather than switching the default right away. I'm also
wondering whether distros should pre-enable that shopt as part of their tweaks
to the defaults used by their flavor of bash (along with any other defaults
they tweak), if it would help matters.

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