Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Multibyte test fails on MacOSX Leopard



On Tue, 26 Feb 2008 23:00:16 +0200
"İsmail Dönmez" <ismail@xxxxxxxxxxx> wrote:
> Hi all,
> 
> Using MacOSX Leopard 10.5.2 with latest CVS I get,
> 
> Testing multibyte with locale en_US.UTF-8
> *** /tmp/zsh.ztst.out.91960	2008-02-26 22:58:32.000000000 +0200
> --- /tmp/zsh.ztst.tout.91960	2008-02-26 22:58:32.000000000 +0200
> ***************
> *** 1,2 ****
> ! HAH HEH HÉH HÈH HUH
>   HAH HEH HUH HÈH HÉH
> --- 1,2 ----
> ! HAH HEH HUH HÈH HÉH
>   HAH HEH HUH HÈH HÉH
> Test ./D07multibyte.ztst failed: output differs from expected as shown
> above for:
>   print -oi HAH HUH HEH HÉH HÈH
>   (LC_ALL=C; print -oi HAH HUH HEH HÉH HÈH)
> Was testing: Multibyte characters in print sorting
> 
> 
> Did anyone see this before? I don't see any functional problem with
> respect to multibyte handling but I think its a good idea to report
> this anyway.

Yes, it looks like the collation sequence for accented characters is
different in your library.  It's a nuisance since that leaves no way of
testing this---it's already forced into en_US.UTF-8 which gives the
expected answer on other systems.

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.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author