From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31112 invoked from network); 16 Mar 2022 15:30:37 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Mar 2022 15:30:37 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1647444637; b=QXY6cHW2x2yeSrvBq6LB2YWEA1ykwP8oZidk6JU+TtQy1aZpvO7fusp3bg0de3eU6zbiQ5m23q JcIDIApr9e2Knsy7iAJyIG9Bju3Mk6VKCIBj7MIVOKO6tmWmRUyxefHCxELoEosDGApnKpdUs6 SOvRJVA2YfUrMf8wwyi1PjmUv6sVOzuo5idIFaANPRJweHeM/hduPsnmNMmev29E2oBpBVH23l eYG6pd5cyci9WBAnc7pNeNwxuunOKeMmc/kNDOLONum8yOk033IYi7Sd284h2uuh+0qYk4gx3G 3n65iRxgmHl+MNeMycNsIvh0337djWK1Ma1+7BcuO3QpSg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd01014-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.30; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1647444637; bh=i9YV3Y/zBT7mI/8su8EQ3VIsu+LHL+QDzEgfaqr4wt4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Message-ID:In-Reply-To:To:References:Date:Subject: MIME-Version:Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=SIRzFtPiT9//YQTzzbCRvNghtATrRdIfZ8EUAHMQJXbameN4iJleGxAaQIJZ0ma0PQr6uCAYoj FOiGKaA0rsvzo+tldbDd8eqoSnyH07yVLbCRwLVBoOQf6RTWsXYR8iJ5rrvKRxAzNBHRYzowIR Pc8UHXX2Kz6mtrybSgzRmX4+kK/9i84yz0GHwoY797obRGfb3kQpu1sCaBtyclxXkvLSa4ImlT vKtIH0E6bUnZFMf/2ryM7LAjctaA48Ai64V7fXF9r3UqYN1FKSuG78sMBwwwyrzh+Q+VlDybv7 ER/xA6RcKF0IIprQQj+YGE7qpBVs+AOksvtjhoasfI0YvQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-Id:In-Reply-To:To:References: Date:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=sGJSasWm95aHWDJC5hkzw3qxBrHQ7v1+2XPe52RW5tw=; b=Stczg2EgUCIh9kVXaYlmz2uzjI 0XLVqJJ8EcpJKgZoAiHEhV0JEiZ5/znnC2fD0Y7a0rLsKv6mwL2ogA6R1UK+Up69o2FKgmogP5V+7 XBvkYclEj5LMPgCbF7sSTVDfMWffgFwnF4y0oOZIXw6QvmLmVy4O1oqwuRCI6RC0BIPL02Zi8HGzR mrwCXTaeAX7LP93kphYqgj+hbg5MaHdzCHJgQP2taJBlnaiYbqpnUVcC/kXp7Fe7YPDKcQBfd+o1i CbhDicUtVi1XeKlhxETLFvlI3k+WkP1ir9hLr21fmYc2A4CP0Ex/IQQmPfLKEv99fjuWoZqxsIgR1 D1aziQLg==; Received: from authenticated user by zero.zsh.org with local id 1nUVbh-0000zM-Cz; Wed, 16 Mar 2022 15:30:37 +0000 Authentication-Results: zsh.org; iprev=pass (snd01014-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.30; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd01014-bg.im.kddi.ne.jp ([27.86.113.30]:49731 helo=dfmta1009.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nUVbR-0000ds-2y; Wed, 16 Mar 2022 15:30:22 +0000 Received: from mail.biglobe.ne.jp by omta1009.biglobe.ne.jp with ESMTP id <20220316153017165.VVNC.13671.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Thu, 17 Mar 2022 00:30:17 +0900 From: Jun. T Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Subject: Re: Test ./E03posix.ztst was expected to fail, but passed. Date: Thu, 17 Mar 2022 00:30:15 +0900 References: <20220315163347.GA617047@zira.vinc17.org> To: zsh-workers@zsh.org In-Reply-To: Message-Id: <082447B3-C6A4-44A1-A3D3-7FD89D707480@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3693.60.0.1.1) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 49861 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: > 2022/03/16 1:53, Mikael Magnusson wrote: >=20 > On 3/15/22, Vincent Lefevre wrote: >>=20 >> Test ./E03posix.ztst was expected to fail, but passed. >> Was testing: Width of %s is computed in bytes not characters >> ./E03posix.ztst: test XPassed. (snip) >> I don't know the current status... Has this been discussed in the >> austin-group list? (snip) > Noticed and discussed a bit on IRC the other week/month (sorry for > unedited irc log) (snip) > 19:26 but my LC_CTYPE is set to that, and LC_ALL is unset Please try the following patch. The patch for E03posix.ztst may not be necessary for fixing the current problem, but I think it is always safer to use 'zsh -f'. diff --git a/Test/E03posix.ztst b/Test/E03posix.ztst index b191199ad..9695777f6 100644 --- a/Test/E03posix.ztst +++ b/Test/E03posix.ztst @@ -125,39 +125,39 @@ F:POSIX requires a solitary "-" to be a plain argument >- =20 - ARGV0=3Dsh $ZTST_testdir/../Src/zsh -c 'foreach() { true; }' + ARGV0=3Dsh $ZTST_testdir/../Src/zsh -fc 'foreach() { true; }' -f:"foreach" is not a reserved word =20 - ARGV0=3Dsh $ZTST_testdir/../Src/zsh -c 'end() { true; } + ARGV0=3Dsh $ZTST_testdir/../Src/zsh -fc 'end() { true; } -f:"end" is not a reserved word =20 - a=3D'a:b:' ARGV0=3Dsh $ZTST_testdir/../Src/zsh -c 'IFS=3D:; printf = "<%s>\n" $a' + a=3D'a:b:' ARGV0=3Dsh $ZTST_testdir/../Src/zsh -fc 'IFS=3D:; printf = "<%s>\n" $a' 0f:IFS is a separator, not a delimiter > > =20 - a=3D$'\ra\r\rb' ARGV0=3Dsh $ZTST_testdir/../Src/zsh -c 'IFS=3D:; = printf "<%s>\n" $a' + a=3D$'\ra\r\rb' ARGV0=3Dsh $ZTST_testdir/../Src/zsh -fc 'IFS=3D:; = printf "<%s>\n" $a' 0f:All whitespace characters are "IFS whitespace" F:isspace('\r') is true so \r should behave like space, \t, \n F:This may also need to apply to multibyte whitespace > > =20 - ARGV0=3Dsh $ZTST_testdir/../Src/zsh -c 'IFS=3D2; printf "<%s>\n" = $((11*11))' + ARGV0=3Dsh $ZTST_testdir/../Src/zsh -fc 'IFS=3D2; printf "<%s>\n" = $((11*11))' 0f:IFS applies to math results (numbers treated as strings) ><1> ><1> =20 - ARGV0=3Dsh $ZTST_testdir/../Src/zsh -c 'inf=3D42; echo $((inf))' + ARGV0=3Dsh $ZTST_testdir/../Src/zsh -fc 'inf=3D42; echo $((inf))' 0:All identifiers are variable references in POSIX arithmetic F:POSIX has neither math functions nor floating point >42 =20 - ARGV0=3Dsh $ZTST_testdir/../Src/zsh -c 'EUID=3D10; echo "$EUID"' + ARGV0=3Dsh $ZTST_testdir/../Src/zsh -fc 'EUID=3D10; echo "$EUID"' -f:EUID is not a special variable >10 =20 - ARGV0=3Dsh $ZTST_testdir/../Src/zsh -c "printf '<%10s>\n' = St$'\M-C\M-)'phane" + ARGV0=3Dsh $ZTST_testdir/../Src/zsh -fc "printf '<%10s>\n' = St$'\M-C\M-)'phane" 0f:Width of %s is computed in bytes not characters F:This is considered a bugfix in zsh >< St=C3=A9phane> diff --git a/Test/ztst.zsh b/Test/ztst.zsh index a59c06dcf..43f8ed730 100755 --- a/Test/ztst.zsh +++ b/Test/ztst.zsh @@ -25,6 +25,7 @@ emulate -R zsh # Ensure the locale does not screw up sorting. Don't supply a locale # unless there's one set, to minimise problems. [[ -n $LC_ALL ]] && LC_ALL=3DC +[[ -n $LC_CTYPE ]] && LC_CTYPE=3DC [[ -n $LC_COLLATE ]] && LC_COLLATE=3DC [[ -n $LC_NUMERIC ]] && LC_NUMERIC=3DC [[ -n $LC_MESSAGES ]] && LC_MESSAGES=3DC