Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jun 2002 12:00:06 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        "Tim J. Robbins" <tjr@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/uniq uniq.c
Message-ID:  <20020607080005.GA97574@nagual.pp.ru>
In-Reply-To: <20020607101552.A46543@treetop.robbins.dropbear.id.au>
References:  <200206061344.g56DiEX47747@freefall.freebsd.org> <20020607101552.A46543@treetop.robbins.dropbear.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 07, 2002 at 10:15:52 +1000, Tim J. Robbins wrote:

> Please make the behaviour of "sort -u" consistent with "sort | uniq", then,
> if both are to use LC_COLLATE. The sort utility from (at least) textutils
> 2.0.21 uses strcoll() == 0 as a check for uniqueness (as Solaris does in its
> sort utility) and has workarounds to handle embedded NUL bytes etc.

It seems we need to upgrade our sort to that variant. I'll try to look at
it closer. What we currently have in sort.c in some cases do
character-by-character comparison which is not compatible with
"substitute".

> I am not sure if any earlier versions of textutils handled locale collation
> order (the code looks to be <5 months old). It's on alpha.gnu.org.

Old GNU sort.c do nothing about collation or decimal point. See my changes
to current sort.c, ifdefed with FreeBSD. New GNU sort does largely the 
same things I do many years ago.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020607080005.GA97574>