Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A second test release before 5.9 final?
On Sun, May 1, 2022 at 7:25 PM Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author