zsh-workers
 help / color / mirror / code / Atom feed
* Tests A04 and D07 fail on macOS Sonoma?
@ 2023-12-02 14:33 Jun. T
  0 siblings, 0 replies; only message in thread
From: Jun. T @ 2023-12-02 14:33 UTC (permalink / raw)
  To: zsh-workers

I've upgraded one of my Macs to macOS 14 (Sonoma), and found that
the tests A04redirect and D07multibyte failed. Are there anyone
having the same failures?

./A04redirect.ztst: starting.     
--- /tmp/zsh.ztst.11189/ztst.out    2023-12-02 19:13:19
+++ /tmp/zsh.ztst.11189/ztst.tout   2023-12-02 19:13:19
@@ -0,0 +1 @@                                              
+foo    
Test ./A04redirect.ztst failed: output differs from expected as shown above for:
  print foo >&-
Was testing: '>&-' redirection
./A04redirect.ztst: test failed.

I think this is a problem of Sonoma (it may be the same bug as
FreeBSD 13.1 reported in workers/50919,50935). I've sent a bug
report to Apple today.


./D07multibyte.ztst: starting.
Testing multibyte with locale en_US.UTF-8
--- /tmp/zsh.ztst.23000/ztst.out    2023-12-02 19:13:55
+++ /tmp/zsh.ztst.23000/ztst.tout   2023-12-02 19:13:55
@@ -1,4 +1,4 @@
-OK
-OK
-OK
-OK
+Failed: no error message and no question mark
+Failed: no error message and no question mark
+Failed: no error message and no question mark
+Failed: no error message and no question mark
Test ./D07multibyte.ztst failed: output differs from expected as shown above for:
(snip)
    testfn() { (LC_ALL=C; print $'\u00e9') }
    repeat 4 testfn 2>&1 | while read line; do
      if [[ $line = *"character not in range"* ]]; then
        print OK
      elif [[ $line = "?" ]]; then
        print OK
      else
        print Failed: no error message and no question mark
      fi
    done
(snip)
Was testing: error handling in Unicode quoting
./D07multibyte.ztst: test failed.

On Sonoma:
% LC_ALL=C; print  $'\u00e9'
'e

__STDC_ISO_10646__ is not defined on macOS, and ucs4toutf8() (utils.c)
uses iconv(3). It seems Apple "improved" iconv(3) so that it gives
'e as the best representation of U+00e9 (é) in US-ASCII.
I don't know what we should do here. One possibility would be to
force define __STDC_ISO_10646__ on macOS (haven't tested this yet).

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-02 14:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-02 14:33 Tests A04 and D07 fail on macOS Sonoma? Jun. T

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).