From owner-freebsd-arch Thu Nov 29 8:28: 3 2001 Delivered-To: freebsd-arch@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 9626E37B439; Thu, 29 Nov 2001 08:27:58 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id fATGRts08639; Thu, 29 Nov 2001 19:27:56 +0300 (MSK) (envelope-from ache) Date: Thu, 29 Nov 2001 19:27:52 +0300 From: "Andrey A. Chernov" To: "David O'Brien" Cc: "Brian F. Feldman" , Mark Murray , Sheldon Hearn , arch@FreeBSD.ORG Subject: Re: BSD sort vs GNU sort. Message-ID: <20011129162751.GD8233@nagual.pp.ru> References: <20011129160616.GB8233@nagual.pp.ru> <200111291608.fATG8Ze60644@green.bikeshed.org> <20011129161322.GC8233@nagual.pp.ru> <20011129081901.B28000@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011129081901.B28000@dragon.nuxi.com> User-Agent: Mutt/1.3.23.2i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Nov 29, 2001 at 08:19:01 -0800, David O'Brien wrote: > On Thu, Nov 29, 2001 at 07:13:23PM +0300, Andrey A. Chernov wrote: > > If you want sufficient test for single-byte sorting & collation, try to > > use ru_RU.KOI8-R encoding. > > I am not sure most of us could do that well. Can you test BSD sort and > report back? I don't have it in hand. The test is simple: 1) Create the file with single character per line from \000 to \377 2) Sort it using LC_CTYPE=ru_RU.KOI8-R gnu_sort < file (I mean _patched_ GNU sort we currently have in sources, not original one which not support collation) 3) Sort it using LC_CTYPE=ru_RU.KOI8-R bsd_sort < file 4) Compare results. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message