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=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3734 invoked from network); 24 Sep 2023 02:11:38 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Sep 2023 02:11:38 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1695521498; b=X0gCDVhc+XR7/Vz9fPfOK560WZEqefdiA3f1F0FeaL9c6UyX/gLtY4+gkMxjr5ET3g8gNvsu6Y aB18nb4a3b4blDS5eN7SEUrv9HIoxxwDQKHV1Ja2p93vFLEKFVz0/Vym26mWTqroMSJL4dsoif RLYl4Nq6uet57NqvvOiPUw8kxRH9vvAgUUYFJ81oiuRJ+ggPZbxwpkVtoSoqOysU+VQRthrLNT 2q4aptQqDMSQjss4uZfZS+UEs3LbYG8aaYcWN2Flm6exHEYJz4hh7TKHZy2cF5TotVgfROV/VX mu3iS5wz10YihbjnMNDCftq2oJXNxLXjPoM6Rt7WD+A56Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd00010-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.10; 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=1695521498; bh=J1xXM4pgK6VnLDqQRV8FFYUYINLhP7xcWYVeQHsjCmw=; 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=fDvoBswNC6o/LsSxetKalgQYDFlhT+ppx9F/WnP38vrdP77S62+/JeAZgZvHoKmUM5mYP2iZUC tBIoJCn3vEthGA/pcQhyjllVw+kYrK2e8ESqCevzKJT9mzNTomynY0QCCy2e8shbqLjaD+tPhq 8lFJ4BaCirAluhJHnLb8TXDmGtpRTblI0sLkzCBxXp3uGB3bNIAZ/w9XnDiAYuja9cHKiYk9Ov 0thyv6XgR9htZ+EIEuYFt5gWHZFiESJlXtDPznG0o4ThI1P7FiA160rHwcS2cBCSpd2hQCAJ7U bFAJ4hyvY0Hx4b4nkBo1KQRehflmvU8NleO5SpYFFWoKPw==; 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=7jSa3Q8EP2pcKoCTP6dDfN7ujObvEJ01gMq8ehyCbg4=; b=ecWrEQfPugV/dVxMUX8YCu78w3 wKyZfZkTLRgwWu2tDGTqSLiGx38Km4hkPqiWAHy7lH8IgcxIoHz+P+9rR9bwzH9MFRO97RkrZhGDw eYRcWgtkM060WIZJgoQW7+j26tfXoItld+ZjVR3sONXIN8K3nKy1GBUQshi2RIS8Q9Q268Pbnif7o KMfg3t6XIJAcC4yg9bmOv6VxMCO2ekX2MQ5njaJisVcco0jo+4b1HgJfJeDkQtIM/4NubNxqg5kww EWD4NSFpqIXyCE1+/UAFZC4wJpqW3BEzVUq16PGxVrOLeJKaOv+f3H3NMMC8Kdy8TsGL85I8hUW+2 OopxVZGg==; Received: by zero.zsh.org with local id 1qkEau-000LIa-UQ; Sun, 24 Sep 2023 02:11:36 +0000 Authentication-Results: zsh.org; iprev=pass (snd00010-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.10; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd00010-bg.im.kddi.ne.jp ([27.86.113.10]:7457 helo=dfmta0023.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qkEaK-000KzE-7L; Sun, 24 Sep 2023 02:11:02 +0000 Received: from mail.biglobe.ne.jp by omta0023.biglobe.ne.jp with ESMTP id <20230924021053776.WNWQ.97557.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Sun, 24 Sep 2023 11:10:53 +0900 From: "Jun. T" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Subject: Re: Test "failure" on multibyte conversions Date: Sun, 24 Sep 2023 11:10:53 +0900 References: To: zsh-workers@zsh.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3696.120.41.1.3) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 52185 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: > 2023/09/24 0:52=E3=80=81Bart Schaefer = wrote: >=20 > 5.4.0-162-generic #179-Ubuntu > zsh-5.9-271-ge4e9afe >=20 > ./D04parameter.ztst: starting. > Test ./D04parameter.ztst failed: bad status 0, expected 1 from: > : ${(#X):-0x80} > Was testing: ${(#X)...}: out-of-range character I can't reproduce this error (with zsh-5.9-271-ge4e9afe) on 5.15.0-75-generic #82~20.04.1-Ubuntu or 6.2.0-33-generic #33~22.04.1-Ubuntu. I guess wctomb() behaves differently on your Ubuntu. What do you get by running the following C code? On my Ubuntu I get -1. # On my Mac I get 1, but wctomb() is not used on macOS since # __STDC_ISO_10646__ is not defined. #include #include #include int main() { char buf[MB_CUR_MAX]; setlocale(LC_ALL, "C"); printf("%d\n", wctomb(buf, 0x80)); return 0; }