[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unicode range and enumeration support.
From: |
Eli Schwartz |
Subject: |
Re: Unicode range and enumeration support. |
Date: |
Wed, 18 Dec 2019 15:28:25 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 |
On 12/18/19 3:13 PM, Greg Wooledge wrote:
> On Wed, Dec 18, 2019 at 03:08:20PM -0500, Eli Schwartz wrote:
>> So all bash needs to do to print {Z..a} is to take Z == ASCII decimal 90
>> and a == ASCII decimal 97, then enumerate the numbers 90-97 and
>> translate them into ascii. No locale awareness is needed, no heuristics,
>> no invocation of the locale subsystem, you don't even need to hardcode
>> the ASCII range in source code.
>
> Until you want to use bash on an EBCDIC system. ;-)
Oof, that was mean. :p (Also, why does this still exist.)
(But I guess we all realize that this just means bash needs to rely on
the existing support for translating the ASCII locale, and still doesn't
need to enumerate a lookup code of characters for this especial purpose.)
>> And that's why bash can support enumerating a range of ASCII characters
>> in LC_COLLATE=C order, when it cannot (easily) do so using other locales.
>
> Yup.
>
--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User
signature.asc
Description: OpenPGP digital signature
- Re: Not missing, but very hard to see (was Re: Backslash missing in brace expansion), (continued)
- Re: Not missing, but very hard to see (was Re: Backslash missing in brace expansion), Eli Schwartz, 2019/12/12
- unquoted expansion not working (was Re: Not missing, but very hard to see), L A Walsh, 2019/12/13
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), Greg Wooledge, 2019/12/13
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), L A Walsh, 2019/12/14
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), Eli Schwartz, 2019/12/15
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), Greg Wooledge, 2019/12/16
- Unicode range and enumeration support., L A Walsh, 2019/12/18
- Re: Unicode range and enumeration support., Greg Wooledge, 2019/12/18
- Re: Unicode range and enumeration support., Eli Schwartz, 2019/12/18
- Re: Unicode range and enumeration support., Greg Wooledge, 2019/12/18
- Re: Unicode range and enumeration support.,
Eli Schwartz <=
- Re: Unicode range and enumeration support., L A Walsh, 2019/12/20
- Re: Unicode range and enumeration support., Eli Schwartz, 2019/12/22
- Re: Unicode range and enumeration support., L A Walsh, 2019/12/23
- Re: Unicode range and enumeration support., Greg Wooledge, 2019/12/23
- Re: Unicode range and enumeration support., L A Walsh, 2019/12/24
- Re: Unicode range and enumeration support., Eli Schwartz, 2019/12/24
- Re: Unicode range and enumeration support., Robert Elz, 2019/12/24
- Re: Unicode range and enumeration support., Eli Schwartz, 2019/12/24
- Re: Unicode range and enumeration support., Stephane Chazelas, 2019/12/25
- Re: Unicode range and enumeration support., Robert Elz, 2019/12/24