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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19303 invoked from network); 13 Sep 2023 10:05:12 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Sep 2023 10:05:12 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1694599512; b=DgynTGsEUoy1l43QVZKV5pUiwENumfkPQFlJuspMApugsCyhQhUwph2TyS1WVIkT/aJSAbTcpD ZeDRgR8nll6QBuUpyUWuqCquRRI+Ci2sCfhsC7EaWF6NO5KnU4xxkSv6PF0EatODaZ+wvZhB5d 85q/zY13f6eJZmv1ay9GCy/RfdXleSJfdyjFBHLhhb+2eBhlwjXVNuoshqIQwfJEf+K8aL7dix f+mc6PxUgDR16q7R6eAs4I4ETThe25NOqqBDuaCKsedFK+lRDwn+WKovbzV1zzSREcqlObAeTQ b7tID+e1x7hgEYaHv41LnBnZ+nvzUWprMfxOSys/juaqhQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd00001-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.1; 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=1694599512; bh=vK916wEsOIc/t79DN1dIJUhrw/Qvr3m8YKw63/1eamQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature; b=eP2tOjdQtjDlvkmhQbeh8cJP20m/qSvt5Ym+M/W5nu70pQykiK8t5PlACRLokBmy03SDdKBfTH ELgNlvv6WGMu7MxQBzQAzOkzF8rNZRJb3pD9iMNcq8f1LUo6TxkzSeg3bIa4my3S8hXaspgZC2 BuhprLW6EFnKxEGzAOUf8DPthPtFgj1M5vv1tcHdYHWUr8vZERfDzKjO7PgRPFA2KdB4HeN3Ja wzNASYLk1213upGsLTecwZ8S0iLv/slzU+JaJ9qX0FUO+PG3v6LyRJ4co7JW2yCdby4Xkt+aN5 GUQ3fbO0Zr0XWLF3pD6I6go6jlNSLmoa61/UWSR0lu37kw==; 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:To:References:Message-Id: Content-Transfer-Encoding:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=OANmk5KlxHYGdny7DY7xTb1dL+9Cz6/N/WxA+zUbUHU=; b=lVEM+ltwHI773k9EEXl4Y9tJIm xBWXwc378X/Y1bGe9Jg52aAdDKEC9klTKC8pOeh7umuMO+RFGSVFYMuWsj7CHJy6wmLghVo/soE+H S6/R7c07OyShYv3yESYr8mIA/BKXtt91t7IPnN7XsTTF1nAsVz4n6WFPzIZWplBcEIpPkdC5a1GeO t248+svictNw3DXPDsFp9uh6ofJm9c5DOQxtKn/GONpnoPPcZMwD7fAUoGf0J8LbkpcvcAAKYqopN oNHJbKriRoneLLUxEfzyu4nFRferenMPxfs00OV1RqvCmqQX9gEfYp0p+fQmGmuKQ294CUxigk/4c XfwVSf3Q==; Received: by zero.zsh.org with local id 1qgMkA-000C6d-7D; Wed, 13 Sep 2023 10:05:10 +0000 Authentication-Results: zsh.org; iprev=pass (snd00001-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.1; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd00001-bg.im.kddi.ne.jp ([27.86.113.1]:13345 helo=dfmta0032.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qgMer-000Bcv-4Y; Wed, 13 Sep 2023 09:59:46 +0000 Received: from mail.biglobe.ne.jp by omta0032.biglobe.ne.jp with ESMTP id <20230913095934959.OPYD.29129.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Wed, 13 Sep 2023 18:59:34 +0900 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: (LC_ALL=C; set -x 128 129; printf "%s\n" ${(#)@} | hexdump -C) From: Jun T X-Priority: 3 In-Reply-To: Date: Wed, 13 Sep 2023 18:59:34 +0900 Content-Transfer-Encoding: 7bit Message-Id: References: <20230830072753.hhveg7teosubwzq7@chazelas.org> <88812889-04BC-412A-85BE-BDAA2326B29B@kba.biglobe.ne.jp> <899459233.232418.1694104433053@mail.virginmedia.com> <64346084-434A-4A42-AD56-44809DA2E54C@kba.biglobe.ne.jp> <968697743.3642134.1694422642580@mail.virginmedia.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 52140 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/11 21:11, Jun. T wrote: > > This is some test for (#) and (#X). Sorry, I've already pushed this, but the test fails on FreeBSD, DragonFly and NetBSD for out-of-range characters. On these OSes (with or without my patch): % LC_ALL=C zsh -f % echo ${(#):-0x80} | hexdump -C 00000000 3f 0a |?.| 00000002 This is due to the peculiar behavior of iconv(3). It converts out-of-range character to '?' (0x3f) with return value 1, indicating that one character is converted in "non-reversible" way. I feel this is a "bug" of iconv(), but maybe better to implement some workaround. I'm getting rather busy now, but hopefully I can work on this within a few days.