On 3/13/13 9:13 AM, Hans J. Albertsson wrote:
> 
> I fully expected the brace expression {Z..Ö} to epand to Z Å Ä Ö in the
> sv_SE.ISO8859-1 locale.
> 
> Why is brace expressions limited to C locale behaviour?

Because there is no portable way to enumerate a collating sequence, no
portable way to discover where an arbitrary character appears in the
locale's collating sequence, and no way to tell how "far apart" two
characters are in the locale's collating sequence.  In fact, except for
strcoll(3), the current locale's collating sequence is completely opaque.

> What can I do to change that?

Very little.

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


Reply via email to