From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29776 invoked from network); 27 Feb 2008 19:39:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Feb 2008 19:39:44 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 18450 invoked from network); 27 Feb 2008 19:39:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Feb 2008 19:39:37 -0000 Received: (qmail 24059 invoked by alias); 27 Feb 2008 19:39:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24618 Received: (qmail 24042 invoked from network); 27 Feb 2008 19:39:32 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 27 Feb 2008 19:39:32 -0000 Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by bifrost.dotsrc.org (Postfix) with ESMTP id AD70B8026E0B for ; Wed, 27 Feb 2008 20:39:29 +0100 (CET) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20080227194140.LHUP27871.mtaout02-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Wed, 27 Feb 2008 19:41:40 +0000 Received: from pws-pc ([81.107.42.63]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20080227193932.ZAPN29112.aamtaout04-winn.ispmail.ntl.com@pws-pc> for ; Wed, 27 Feb 2008 19:39:32 +0000 Date: Wed, 27 Feb 2008 19:37:41 +0000 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: Multibyte test fails on MacOSX Leopard Message-ID: <20080227193741.6bff30b7@pws-pc> In-Reply-To: <20080227103456.6d0e46ff@news01> References: <19e566510802261300s13d728ebv3333c812b1ad8d52@mail.gmail.com> <20080227103456.6d0e46ff@news01> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV 0.91.2/6012/Wed Feb 27 19:48:06 2008 on bifrost X-Virus-Status: Clean On Wed, 27 Feb 2008 10:34:56 +0000 Peter Stephenson wrote: > We might be able to compare the output of "sort", I suppose, but that does > rely on sort being internationalized. It's probably a reasonable bet if > we've got this far. Let's see what happens. Index: Test/D07multibyte.ztst =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/zsh/zsh/Test/D07multibyte.ztst,v retrieving revision 1.22 diff -u -r1.22 D07multibyte.ztst --- Test/D07multibyte.ztst 17 Dec 2007 17:11:29 -0000 1.22 +++ Test/D07multibyte.ztst 27 Feb 2008 19:37:37 -0000 @@ -322,10 +322,16 @@ # We ask for case-insensitive sorting here (and supply upper case # characters) so that we exercise the logic in the shell that lowers the # case of the string for case-insensitive sorting. - print -oi HAH HUH HEH H=C3=89H H=C3=88H +# As all letters are upper case, however, sort should produce the same ord= er. + print -loi HAH HUH HEH H=C3=89H H=C3=88H >zshsort.txt + print -l HAH HUH HEH H=C3=89H H=C3=88H | sort >sortsort.txt + print Diff output should be empty + diff zshsort.txt sortsort.txt + print Sort in C locale (LC_ALL=3DC; print -oi HAH HUH HEH H=C3=89H H=C3=88H) 0:Multibyte characters in print sorting ->HAH HEH H=C3=89H H=C3=88H HUH +>Diff output should be empty +>Sort in C locale >HAH HEH HUH H=C3=88H H=C3=89H =20 # These are control characters in Unicode, so don't show up.