bug-bash
[Top][All Lists]
Advanced

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

Re: people working in Greg's locale (+euro) & display of Unicode names


From: Chet Ramey
Subject: Re: people working in Greg's locale (+euro) & display of Unicode names
Date: Thu, 15 Jun 2017 11:03:34 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 6/14/17 8:54 PM, PePa wrote:
> On 15/06/2560 07:13, Chet Ramey wrote:
>> A character that is classified as an alphanumeric in a particular locale,
>> but not in another, can lead to portability problems. That's what we're
>> debating here, not how something gets displayed in a text editor.
> 
> I don't think that exists in unicode or UTF-8 -- could you give an
> example of a character that is classified as an alphanumeric in a
> particular locale, but not in another?

I don't know other languages well enough to point one out, but I can easily
imagine that a particular character is an "alphabetic" in, say, Mandarin,
but doesn't exist in someone's en_US character set.

> 
> I think this whole discussion about alphanumerics in world languages is
> a red herring though. I don't see any objection in using any
> symbol/glyph as admissible in variable names, barring certain reserved
> ASCII ones, like space, comma, dot, dash, several kinds braces etc.
> It would also greatly simplify the whole implementation.

I see a number of problems with using non-alphanumerics in shell
identifiers.  The real advantage to allowing this is to allow users to
put alphabetics from their own locales into shell identifiers.  There's
little reason to do it otherwise, and plenty of complications.

As for the implementation, it's much easier to use isalpha/isdigit (and
their wide character equivalents) than to try and keep track of a blacklist
of characters across different locales.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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