[Top][All Lists]

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

Re: is it a bug?

From: Eric Blake
Subject: Re: is it a bug?
Date: Mon, 01 Mar 2010 09:58:08 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20090812 Thunderbird/ Mnenhy/

According to Igor Zakharoff on 3/1/2010 9:49 AM:
> $ echo -e "ru.unix /h\nru.unix.ftn /h\nru.unix.prog /h" | sort
> I somehow get
> ru.unix.ftn /h
> ru.unix /h
> ru.unix.prog /h
> Is it a bug?

Nope.  I reproduced your results with the en_US locale, but not with the C
locale.  Remember that in some locales, like en_US, whitespace is ignored
as insignificant in collation.

Try '... | LC_ALL=C sort' to see the difference.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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