zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Jun T <takimoto-j@kba.biglobe.ne.jp>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: A second test release before 5.9 final?
Date: Sun, 1 May 2022 20:10:36 -0700	[thread overview]
Message-ID: <CAH+w=7bidpJqKXOphbDnYY8pA4W==dL5VftHygvxWgMDfS8zxg@mail.gmail.com> (raw)
In-Reply-To: <57B00EBA-A66B-4AD8-8546-28210CFB9659@kba.biglobe.ne.jp>

On Sun, May 1, 2022 at 7:25 PM Jun T <takimoto-j@kba.biglobe.ne.jp> wrote:
>
> It seems macOS uses collating order é < Ą (this may or may not a bug of macOS).

This is one of the potential reasons I didn't want to write this test.

> If we need to test the two characters

Unfortunately, the point is to test that two file names can be stat'd
in one command.

Try it this way?  Has the added benefit of checking that we set the
array elements correct.

diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index 25634e502..e2e9a25ef 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -631,9 +631,12 @@ F:support character sets outside the portable 7-bit range.
   # Subshell for zmodload isolation
   (
     zmodload zsh/stat
+    typeset -A sizes
     touch 50150-é 50150-Ą
     # Using +size solely in order to make it easier to write the expectations
-    zstat +size -nor -- 50150-*
+    zstat +size -A sizes -nor -- 50150-*
+    print -r -- 50150-Ą $sizes[50150-Ą]
+    print -r -- 50150-é $sizes[50150-é]
   )
 0:(workers/50150) zsh/stat with Unicode and metafication
 >50150-Ą 0


  reply	other threads:[~2022-05-02  3:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-30 18:31 Bart Schaefer
2022-04-30 21:41 ` dana
2022-05-01 14:52 ` Daniel Shahaf
2022-05-01 16:50   ` Bart Schaefer
2022-05-01 17:38     ` Daniel Shahaf
2022-05-02  2:24       ` Jun T
2022-05-02  3:10         ` Bart Schaefer [this message]
2022-05-02  4:09           ` Jun T
2022-05-02 12:58           ` Daniel Shahaf
2022-05-01 17:49     ` Peter Stephenson
2022-05-01 18:09     ` [PATCH] Test for 50101 Bart Schaefer
2022-05-01 19:09     ` [PATCH] Tests for 50126, 50136, and 50149 Bart Schaefer
2022-05-02  4:59       ` Jun T
2022-05-02  5:15         ` Bart Schaefer
2022-05-02  5:46           ` Jun T
2022-05-02 13:14         ` Jun. T
2022-05-02 16:26           ` Bart Schaefer

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='CAH+w=7bidpJqKXOphbDnYY8pA4W==dL5VftHygvxWgMDfS8zxg@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@zsh.org \
    /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).