[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pattern replacement fails if string contains multibyte characters
From: |
Chet Ramey |
Subject: |
Re: Pattern replacement fails if string contains multibyte characters |
Date: |
Fri, 28 Sep 2007 18:07:40 -0400 |
User-agent: |
Thunderbird 2.0.0.6 (Macintosh/20070728) |
I wrote:
> The difference is in the gnu libc implementation of strcoll(), which bash
> uses to compare characters for range matching. The glibc implementation
> ignores the locale; the other systems incorporate the current locale's
> collating sequence into their strcoll implementation.
Sorry, that's backwards. On systems where strcoll() honors the current
locale's collating sequence, you'll get the output you see on Linux.
Systems that either don't have locale support or don't reflect the
locale's collating sequence in strcoll() will produce the output you
expect.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/