[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode range and enumeration support.

From: Greg Wooledge
Subject: Re: Unicode range and enumeration support.
Date: Wed, 18 Dec 2019 15:13:18 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

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. ;-)

> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]