From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Subject: Re: D07multibyte.ztst failure on HP-UX 11.11
Date: Tue, 28 Apr 2009 09:48:32 +0100 [thread overview]
Message-ID: <20090428094832.443012a2@news01> (raw)
In-Reply-To: <20090427192643.GD28369@otaku>
On Mon, 27 Apr 2009 19:26:43 +0000
Paul Ackersviller <pda@sdf.lonestar.org> wrote:
> On Mon, Apr 27, 2009 at 08:42:46AM +0400, Andrey Borzenkov wrote:
> > Could you verify exact byte sequence with od, xxd or like? It is quite
> > possible to have combined vs. non-combined characters here (which look
> > alike in printable form but have different internal representation).
>
> Of course, should've thought of that the first time. I've attempted
> to annotate the mismatches, but could've missed something.
>
>
> 0000000: 2a2a 2a20 312c 3220 2a2a 2a2a 0a21 2048 *** 1,2 ****.! H
> 0000010: ce91 4820 48ce 9248 2048 ce93 4820 48ce ..H H..H H..H H.
> ^ ^
> 0000020: 9448 2048 ce95 480a 2020 4841 4820 4845 .H H..H. HAH HE
> ^ ^
> 0000030: 4820 4855 4820 48c3 8848 2048 c389 480a H HUH H..H H..H.
>
>
> 0000040: 2d2d 2d20 312c 3220 2d2d 2d2d 0a21 2048 --- 1,2 ----.! H
> 0000050: ce95 4820 48ce 9448 2048 ce93 4820 48ce ..H H..H H..H H.
> ^ ^
> 0000060: 9248 2048 ce91 480a 2020 4841 4820 4845 .H H..H. HAH HE
> ^ ^
> 0000070: 4820 4855 4820 48c3 8848 2048 c389 480a H HUH H..H H..H.
You missed a 94 and a 92 which I've marked: the problem is again that the
sort order isn't quite as deterministic as one might hope. It looks like
something funny happened to the characters in your original post; this may
or may not be related. It's possible the problem is in case modification.
The desired answer is that (in the selected UTF-8 locale)
print -oi HΕH HΔH HΓH HΒH HΑH
outputs
HΑH HΒH HΓH HΔH HΕH
(the middle letters are all upper case Greek). Does it work without the
-i?
The sort tests have always been arguably more trouble than their worth,
though I suppose it probably is worth spotlighting where the problems are.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
next prev parent reply other threads:[~2009-04-28 8:48 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-27 3:17 Paul Ackersviller
2009-04-27 4:42 ` Andrey Borzenkov
2009-04-27 19:26 ` Paul Ackersviller
2009-04-28 8:48 ` Peter Stephenson [this message]
2009-04-28 19:19 ` Paul Ackersviller
2009-04-28 19:48 ` Peter Stephenson
2009-04-30 3:01 ` Paul Ackersviller
2009-04-30 8:41 ` Peter Stephenson
2009-04-30 15:58 ` Paul Ackersviller
2009-04-30 16:03 ` Peter Stephenson
2009-05-01 14:52 ` Paul Ackersviller
2009-05-01 15:18 ` Peter Stephenson
2009-05-05 19:39 ` Paul Ackersviller
2009-05-06 19:22 ` Peter Stephenson
2009-05-06 21:50 ` Paul Ackersviller
2009-05-07 15:38 ` Peter Stephenson
2009-05-07 16:02 ` Peter Stephenson
2009-05-07 22:08 ` Paul Ackersviller
2009-05-07 23:30 ` Modules on HP-UX (Re: D07multibyte.ztst failure on HP-UX 11.11) Bart Schaefer
2009-05-08 8:34 ` Peter Stephenson
2009-05-08 14:20 ` Bart Schaefer
2009-05-08 14:29 ` Peter Stephenson
[not found] ` <090508084125.ZM17697@torch.brasslantern.com>
2009-05-11 8:52 ` Peter Stephenson
2009-05-08 18:42 ` Modules on HP-UX Paul Ackersviller
2009-05-12 20:22 ` Modules on HP-UX, with small PATCH Paul Ackersviller
2009-05-08 14:23 ` D07multibyte.ztst failure on HP-UX 11.11 Peter Stephenson
2009-05-02 1:00 ` Phil Pennock
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=20090428094832.443012a2@news01 \
--to=pws@csr.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).