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/23393] Handle [a-z] and [A-Z] in consistent portable fashion regardless of locale.


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.

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