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

Re: A second test release before 5.9 final?



> 2022/05/02 2:38, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> 
> --- a/Test/D07multibyte.ztst
> +++ b/Test/D07multibyte.ztst
(snip)
> +0:(workers/50150) zsh/stat with Unicode and metafication
> +>50150-Ą 0
> +>50150-é 0

On macOS this fails as:

Testing multibyte with locale en_US.UTF-8
--- /tmp/zsh.ztst.90230/ztst.out    2022-05-02 10:11:21.000000000 +0900
+++ /tmp/zsh.ztst.90230/ztst.tout   2022-05-02 10:11:21.000000000 +0900
@@ -1,2 +1,2 @@
-50150-Ą 0
 50150-é 0
+50150-Ą 0
Test ./D07multibyte.ztst failed: output differs from expected as shown above for:
  # Subshell for zmodload isolation
  (
    zmodload zsh/stat
    touch 50150-é 50150-Ą
    # Using +size solely in order to make it easier to write the expectations
    zstat +size -nor -- 50150-*
  )
Was testing: (workers/50150) zsh/stat with Unicode and metafication


It seems macOS uses collating order é < Ą (this may or may not a bug of macOS).
If we need to test the two characters the simplest workaround would be:

zstat +size -nor -- 50150-Ą
zstat +size -nor -- 50150-é



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