From owner-cvs-all Thu Jun 6 5: 5:45 2002 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 6FCD837B404; Thu, 6 Jun 2002 05:05:41 -0700 (PDT) Received: by flood.ping.uio.no (Postfix, from userid 2602) id DEB37535E; Thu, 6 Jun 2002 14:05:39 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Tim J. Robbins" Cc: "Andrey A. Chernov" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/uniq uniq.c References: <200206060313.g563DAi26751@freefall.freebsd.org> <20020606031545.GA83612@nagual.pp.ru> <20020606161843.A44561@treetop.robbins.dropbear.id.au> <20020606083246.GA85860@nagual.pp.ru> <20020606192402.A45186@treetop.robbins.dropbear.id.au> From: Dag-Erling Smorgrav Date: 06 Jun 2002 14:05:39 +0200 In-Reply-To: <20020606192402.A45186@treetop.robbins.dropbear.id.au> Message-ID: Lines: 12 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Tim J. Robbins" writes: > uniq is defined in terms of string equality, not string collatng order. > It doesn't matter how the input is split into collating elements or their > weights, what matters is that the lines have the same bit patterns. The GNU > implementation uses memcmp() to compare lines. Solaris appears to use > strcmp() (objdump -T on /bin/uniq shows no reference to strcoll or strxfrm). Solaris uses a wrapper around strcmp(). DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message