This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug regex/23393] Handle [a-z] and [A-Z] in consistent portable fashion regardless of locale.
- From: "eblake at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 24 Jul 2018 20:20:19 +0000
- Subject: [Bug regex/23393] Handle [a-z] and [A-Z] in consistent portable fashion regardless of locale.
- Auto-submitted: auto-generated
- References: <bug-23393-131@http.sourceware.org/bugzilla/>
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.