[Bug 256473] FreeBSD shells are case insensitive for character ranges

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 08 Jun 2021 16:17:03 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256473

Stefan Eßer <se_at_FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Works As Intended
             Status|Open                        |Closed

--- Comment #5 from Stefan Eßer <se_at_FreeBSD.org> ---
(In reply to Jason W. Bacon from comment #3)
As explained in the previous comment, the behavior you observe with bash is
caused by "globasciiranges" set to on.

I was wrong when I mentioned LC_CTYPE as relevant for collating sequences, it
does only apply to the character class.

You want to set LC_COLLATE to "C" (i.e. "export LC_COLLATE=C" or "setenv
LC_COLLATE C" depending on the type of shell).

This will make all shells use the collating sequence specified for the C locale
and that is what you seem to want.

Everything works as it should, therefore I'm going to close this PR.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Tue Jun 08 2021 - 16:17:03 UTC

Original text of this message