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,WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19495 invoked from network); 19 May 2022 03:28:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 May 2022 03:28:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1652930933; b=iwRxNNwUzQqx0pNeCJIHmqNrDPmgGYD+I6eMYv3uymeWnwSLDfDx+a+G60jBJHynJy9uqtWCwj J/Car8zBROEoNAMkgMQM5H0EE8yGov8hhuEOTZLPzZIdYfc+Ka5+3/H17eunHy4xvjQK6gYUjD 4iJ5MiT06dbexAioEHf16UeFpUJHjZXk3JYDtzDz+GtODx3PPzBSt2Ui+3FhK2U1Y25NRHtC2y YceuH0omldl0vXh25riJAQI20VbWlB8GLEmfjIA+FMUi4ue0EwqLS76HxIiokedI2/gXMi1Yji cUY7McHxCTv6uSi+8l33Qx5+CaLsPf0CIz5QdE0BbVM+Lw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout2-smtp.messagingengine.com) smtp.remote-ip=64.147.123.25; dkim=pass header.d=dana.is header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1652930933; bh=HUYxfMzOuK78mrOiyUu4l8pbwOQtBcTOCP0tcBe0Dqw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:Cc:To:From: Date:References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=a0tARBrFLrhJHAiOysw3Z21oTO1obQ/oG+2k6y9KwkdbNLGwe7ThDZemb5Qs/K3dsT7Cg3adUl iCPx5DGR/KcBkW/qjMPkcQY+7lxYZW9vK0KAd5dlAxJ5a8LAQTU3oISJYYwrZ7uE258fI8TE4o mgp+AQf1wpgESP7FLo9rQiJ/dOaUgb1qC19zXWorrkc+sCM9DMoDGPrLgw3UteQIf5lcKPEDh5 zdXMBLn9GpLlQjzvShOKFKvc30bHfJ4lMSW3i9PmV4DYbrfV8oo2SSznrCFFRQf8FpAhyXWZCX RaZolEOR06LScuL+J3QVgwMlnGIp2TKxuWOpxZuJGvCxpQ==; 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:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=HUYxfMzOuK78mrOiyUu4l8pbwOQtBcTOCP0tcBe0Dqw=; b=VLmNPH37otYnwkwhTG6cNTLPSU 1Px4NvxqQu/JiDJAvMRKKcQ4gruEcqnhBcR8MhTw//qWw2We5awoQElG0Fa0NEFhisjygekVDNhvD wOWq6mEavxk5+/+BaJ4N10DmOAqWOOFaZucVVhAGYmeSFU/UX3bGL8YO9FKrRKqQFHjBQtDHrlyS3 ChiO9EjVsFFIS09oDVI8+ODQiwqQW3OHOKOWWoyomBcIqNWPogsK/As2S+zOWG4N/P+CfEQbCkrAZ i45TQ1mVEHfiDX3oWI/2wHMPOXFhXNewqgnWp2klYJnGrUF03h6zup5JFwNfvWeLak0B6gPDx8pSW +ROYojsA==; Received: from authenticated user by zero.zsh.org with local id 1nrWqH-000Aha-5o; Thu, 19 May 2022 03:28:49 +0000 Authentication-Results: zsh.org; iprev=pass (wout2-smtp.messagingengine.com) smtp.remote-ip=64.147.123.25; dkim=pass header.d=dana.is header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55649) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nrWpg-000AMD-QE; Thu, 19 May 2022 03:28:14 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A3E1E320090A; Wed, 18 May 2022 23:28:10 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Wed, 18 May 2022 23:28:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana.is; h=cc:cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1652930890; x= 1653017290; bh=HUYxfMzOuK78mrOiyUu4l8pbwOQtBcTOCP0tcBe0Dqw=; b=t dinHwK3WKhjh98i7Njp5iNiOpOzbm0zDpi8XJDZ+XiZ4j/wSX5t4Ft/UzkrebmMr fSuwyuz3BZ1Jy5vWW+vp7NAujbbcCN9l6JUx/61eDuAxac46aKhysbC0TEIB6h59 0qKKFppsJpmtwjUbkawSrjpiSFIo+CYvMXvPnbtRETegqG3X1DqOUcZ8xWBQaN1A QhCEUwN+xiFtzVQ6oZ8TOSpWW00AYVe5O2fTw7IRN4nQRw02/hS1H82CjOkB3dBy DBwbtEYk9pvLnCRejK61zBwco2c1nYB1GZ40eeRJJTa044InosgFDEmz5bT9CV7V WXPHIdQpGRIdWgVqZWs3A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1652930890; x= 1653017290; bh=HUYxfMzOuK78mrOiyUu4l8pbwOQtBcTOCP0tcBe0Dqw=; b=I Zz3K0CYmn5AG36UIYM6AzVOQt/9fbt8az3v7LeN3oYWnGlEYwaYLTOY7T7SCKsTR lA39YYcCyL41PhgmhoxKgnUlX7WkB/Wk0VBkA0/oqSxUwIuCDbuAIynHPnK7Vp3m L7g+CnT4yTEmcK4Z/YcAiwfCe8Kgizdq8W08C0sWhHUOWKwAZgkMBTBPfsdQS7BM vcMfawD/xBWJuuotszLBdC/mdsnIxg0F2fMkvrsiuvQbYcvQwaPPyxMFMrwePrnl D5SQSb29LZ0XDIaUNTUrO2ThynnCOUcUD8OIgNkKQGxe3+0fkrRqDWrZ8TnHUveV Zbe7TzfLdsz3aY4m8EpSQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedriedtgdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvfevufgtgfesth hqredtreerjeenucfhrhhomhepuggrnhgruceouggrnhgrsegurghnrgdrihhsqeenucgg tffrrghtthgvrhhnpeetvdekffeuteeiveevkeffhfdtgeduueduiefgfefgueektdfgtd ffheefuefhueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegurghnrgesuggrnhgrrdhish X-ME-Proxy: Feedback-ID: i9be146f9:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 644AC170005F; Wed, 18 May 2022 23:28:09 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 Mime-Version: 1.0 Message-Id: In-Reply-To: <89079237-6D93-45F0-B11B-7516372CB370@kba.biglobe.ne.jp> References: <2d2b70ef-60b7-4f4b-b85a-8f651a8179ba@www.fastmail.com> <89079237-6D93-45F0-B11B-7516372CB370@kba.biglobe.ne.jp> Date: Wed, 18 May 2022 22:27:46 -0500 From: dana To: "Jun T" Cc: "Zsh hackers list" Subject: Re: E02 failing on Alpine / musl libc Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 50246 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: On Mon 16 May 2022, at 21:33, Jun T wrote: > So I think we need/should not "fix" this, because 0xfdXX (or \ufdXX) i= s the > correct representation in their "special" C loale. I think i see the argument for not trying to do any 'special' accounting of this locale in the shell. As far as the tests, i guess we are technically making assumptions about the wchar values of non-'portable' characters that POSIX says we can't actually make, but not making those assumptions seems annoying For the E02 test in particular, as Peter says, it isn't a multi-byte tes= t. If there's not anything special about the code path for xtrace preservation that's sensitive to weird function names maybe that aspect = of the test belongs in B13, C04, or D07...? Here is some additional context/history behind these failing tests, in case anyone's ever looking for it later. Don't read this, you probably don't care: The A03 and B03 tests that Jun mentioned here have been failing on musl since at least zsh-5.5 =E2=80=94 probably longer (despite workers/48578 = indicating that it'd only started 'recently'), since the """special""" (lol) locale was introduced to musl in August 2015, and made its way into Alpine very shortly afterwards The LC_ALL=3DC in the failing E02 test was introduced by me and Jun in workers/45537+45550 to fix a similar issue i was seeing with the way the function name =E3=83=8C was being printed by `which` on macOS Mojave. I = bet i was having this problem because i had explicitly set LC_CTYPE to a UTF-8 locale, and Jun had not yet made the change in workers/49908 to have ztst reset that back to C like it did with LANG and LC_ALL. It does now reset it with the others so the LC_ALL=3DC is probably superfluous in that res= pect However, if you don't have *any* LANG/LC_* variables set, on some system= s, including Alpine, where the 'implementation-defined default locale' is UTF-8, you can get the same behaviour i was seeing where `which` just prints =E3=83=8C back out without any escaping I mention that because there are basically only two possibilities on a typical musl system (either the 'special' POSIX locale or a UTF-8 one) and both of them will cause the test to fail as written. And also because there might be other systems that have a UTF-8 default locale where this test and others could fail without an explicit LC_ALL=3DC because ztst o= nly resets the locale to C if we're *not* using the default one (which i don= 't think i understand the reasoning for) dana