bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: sed bug


From: Paolo Bonzini
Subject: Re: sed bug
Date: Fri, 20 May 2011 07:56:40 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 05/19/2011 06:20 PM, Duane Dombrowski wrote:
Actually, the behavior below is for
LC_ALL=en_US.UTF-8
Works as expected for
LC_ALL=C
LC_ALL=C.utf8
LC_ALL=POSIX

As much as I hate it, ranges have undefined behavior in non-POSIX locale. Try to use character classes (e.g. [[:upper:]] instead of [A-Z]) whenever possible. The only range that works reliably is [0-9].

Paolo



reply via email to

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