From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@sunsite.dk
Subject: Re: Multibyte test fails on MacOSX Leopard
Date: Wed, 27 Feb 2008 19:37:41 +0000 [thread overview]
Message-ID: <20080227193741.6bff30b7@pws-pc> (raw)
In-Reply-To: <20080227103456.6d0e46ff@news01>
On Wed, 27 Feb 2008 10:34:56 +0000
Peter Stephenson <pws@csr.com> 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
===================================================================
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ÉH HÈH
+# As all letters are upper case, however, sort should produce the same order.
+ print -loi HAH HUH HEH HÉH HÈH >zshsort.txt
+ print -l HAH HUH HEH HÉH HÈH | sort >sortsort.txt
+ print Diff output should be empty
+ diff zshsort.txt sortsort.txt
+ print Sort in C locale
(LC_ALL=C; print -oi HAH HUH HEH HÉH HÈH)
0:Multibyte characters in print sorting
->HAH HEH HÉH HÈH HUH
+>Diff output should be empty
+>Sort in C locale
>HAH HEH HUH HÈH HÉH
# These are control characters in Unicode, so don't show up.
next prev parent reply other threads:[~2008-02-27 19:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-26 21:00 İsmail Dönmez
2008-02-27 10:34 ` Peter Stephenson
2008-02-27 19:37 ` Peter Stephenson [this message]
2008-02-27 21:12 ` İsmail Dönmez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080227193741.6bff30b7@pws-pc \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).