From owner-freebsd-current Sun Apr 7 5:10:44 2002 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 6299A37B400 for ; Sun, 7 Apr 2002 05:10:37 -0700 (PDT) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.2/8.12.2) with ESMTP id g37CAXx7066061; Sun, 7 Apr 2002 16:10:35 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.2/8.12.2/Submit) id g37CAWdb066060; Sun, 7 Apr 2002 16:10:32 +0400 (MSD) Date: Sun, 7 Apr 2002 16:10:32 +0400 From: "Andrey A. Chernov" To: "Tim J. Robbins" Cc: freebsd-current@FreeBSD.ORG Subject: Re: NetBSD sort l10n: I give up! Message-ID: <20020407121031.GA65858@nagual.pp.ru> References: <20020407204013.A20639@treetop.robbins.dropbear.id.au> <20020407105537.GA65170@nagual.pp.ru> <20020407214944.A20857@treetop.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020407214944.A20857@treetop.robbins.dropbear.id.au> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Apr 07, 2002 at 21:49:44 +1000, Tim J. Robbins wrote: > On Sun, Apr 07, 2002 at 02:55:37PM +0400, Andrey A. Chernov wrote: > > > No, it not works since breaks so many other places. > > I guess I have to agree with you there, that it does break -n and -f and does > not handle (for example) German correctly. I still do believe that a similar > approach could correctly handle all the ISO8859 character sets, only it's not > as simple as it seems. I think so too, initially. I even have correct ascii,Rascii,Ftable,RFtable,gweights tables in my last committed variant (but not for various -R). Nope. -n broke them all because it hardcoded to ASCII but sorted in the modified (collated) order.. Back permutation table not helps because of different forms of main (collated) order corresponding to -r -f flags. Via some hacking I even made variant without -R works for -n too, but it not means it will not be broken for any future locale we can have. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message