Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15752

Re: Unicode range and enumeration support.

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Eli Schwartz <eschwartz@archlinux.org>
Newsgroups gnu.bash.bug
Subject Re: Unicode range and enumeration support.
Date Wed, 18 Dec 2019 15:28:25 -0500
Lines 81
Approved bug-bash@gnu.org
Message-ID <mailman.1103.1576700919.1979.bug-bash@gnu.org> (permalink)
References <568aeaaa-22b3-c7b9-0e18-a92bef6d2ffb@iki.fi> <5DF2FE31.9070406@tlinx.org> <0ff3a920-94c2-b0c9-5631-0964955657aa@archlinux.org> <5DF3D78B.4090208@tlinx.org> <20191213184213.GO851@eeg.ccf.org> <5DF4BDF0.6000402@tlinx.org> <20191216163906.GV851@eeg.ccf.org> <5DFA7AE2.2060504@tlinx.org> <20191218194651.GH851@eeg.ccf.org> <c1565d25-c4fc-ff50-4112-c38cee8d2f80@archlinux.org> <20191218201318.GI851@eeg.ccf.org> <b800439d-2fdd-45d9-871d-44346e5c3062@archlinux.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Rlnn4DdQK0dn2q8t0QnAM0ovQO3vT8j3J"
X-Trace usenet.stanford.edu 1576700920 29204 209.51.188.17 (18 Dec 2019 20:28:40 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1576700908; bh=ai0uTA8vNH9niRG07ODiVEtWHXIuPRS7cEr3Xi05c5s=; h=Subject:To:References:From:Date:In-Reply-To; b=BzqGNhw9gleawpAyBL/ZIDQEKVUFcKCAlPY1e6W6bBKAnxhtRIoq5+9BxbGxPRjTO OuybScQVRl4kx1GmcAKzDJLNNc2HhDBsRe5D4kr7GTi5KBrqWdypW7B3Ez3LxuRFwZ HTRfrQxHcz8l4qoHgs3Yaf+RalUb8q8SEXDqdeBr4dnRoIwy5oiBhUQSXA3VrDHno/ iqOESk+DJtCeq2Mi7mPid1v47+81cMy1TBcpxJa+GPwqJm5JIdA8ZJML0x61D/gzJt fFC5uaK9VaGHjZ6jPzdClgK4UMgVhgehpYafrJXRcPHPN4fp5LGtyKfS0+HigXKc8z ECjCGnUpAG2hLTspsAPIbkVP4PxYnqrW/s92y5awU2JPkhOne/SRQlmW2bz+2OrMtE ZrM48WbbAEr8x45H49/EuKezWGwyGL7mq6LhjIPsvJcoQKylT63igmxI3U6XpyUfo/ mUgUjJfCY/CMayc65h5sybYU76H/0/8GBpPdb0PWTaeP/WuzoX7E6uoM/AoAcWPN18 LyhCSTVSukHZ9HXWDls/K2bpofPkUXtm870YhkUzwUwWkRHSM3CWbo3jAO9/W73WWW GJ43eFFcv9o4lGNhx7gB7zGm2JaO8rG6x5k8ParMmBf5z6xnlUdAoSvr4tnS7xGqZp bNGkMZDsXQa51GLRFBLhHWf4=
X-Clacks-Overhead GNU Terry Pratchett
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0
In-Reply-To <20191218201318.GI851@eeg.ccf.org>
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 88.198.91.70
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <b800439d-2fdd-45d9-871d-44346e5c3062@archlinux.org>
X-Mailman-Original-References <568aeaaa-22b3-c7b9-0e18-a92bef6d2ffb@iki.fi> <5DF2FE31.9070406@tlinx.org> <0ff3a920-94c2-b0c9-5631-0964955657aa@archlinux.org> <5DF3D78B.4090208@tlinx.org> <20191213184213.GO851@eeg.ccf.org> <5DF4BDF0.6000402@tlinx.org> <20191216163906.GV851@eeg.ccf.org> <5DFA7AE2.2060504@tlinx.org> <20191218194651.GH851@eeg.ccf.org> <c1565d25-c4fc-ff50-4112-c38cee8d2f80@archlinux.org> <20191218201318.GI851@eeg.ccf.org>
Xref csiph.com gnu.bash.bug:15752

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Unicode range and enumeration support. Eli Schwartz <eschwartz@archlinux.org> - 2019-12-18 15:28 -0500

csiph-web