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 31426 invoked from network); 17 May 2022 02:34:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 May 2022 02:34:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1652754864; b=jy3QNPHqZyobEyqJPR+sN/pj+vP1yCjIhdb2Qnu8N7GZmubUB1AYiCJ9NWUUJdXVphEQADPtKF DA1ZumqDct7L5TLwB816R0PFhWWVCs3bcZCY7IyTK05xlFTfCtd8QLMmO/pgL5m67ifv+EKg7n jNoYPzp8ZLo6umNbYa05TXjOcl3H8T9q9dhi97EqonVoOkLXGbYFEvOpDCbGKdsk4gwNDv3CQM HG6rUhIVOSFziIxahFv06xBZakfBawPAhOyRGwFOL5D6WfQVzUY3CDrh2jm+UL8YzEQ0Wbakrp waf2pprlO0fN/3fc8hv2Yu5kBM4CifZaTS1/kt5CN6dMPw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd01002-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.18; 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=1652754864; bh=JJJ651nPDzMk9jLdFst0JmryO7wCheevpndpz8ulmGw=; 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=M3shDkSSNaQt8EXVfB7z3pzbho5T1Q2eZ1syWC4lv2GMdTvH1+IvG6ybQNsv0GMSk9JFdVoY3P p4iyqt5MEx/GA/uI1zKEiNR69M1xnTrZdLEe7x0pvi8uhGLlJo84zsZZ9RJvzGEp8PqBNiyG1Z w4S66NOVK0U1XMy62xIpaPPIbr3+wNqEOFAHfNIV/ZP2GVtVg1TdZ4CMOhbL5jnRxSGSsmW8tZ gT4q1Jf2K/vWZpUhV51jy8/0DMJpijlnXSF8xHW337PQv9SJWES6nS07vpHDLPGwsZ4MTgX134 GUnKqs9h3e9N1BEqaDKdjq14//W+K3QTRdjkVm9yKzUEyg==; 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=6qW8p+/iJ6o1ZgjBFkBTuMJGbVh0BNXUX5tMuUF04PA=; b=FtHGDonh3lJ96uSaoiDqvhzDCS 9GaTNK3KOf5nQ67I/HgjBK1T6Z1ggQEAkinFgUOl/jjV/NJ63unjaxebDmO5dTWYPh4eGe71V7tGv AffTFkjhAnz9Urf/TfbXt4OukT8IR4Lq1Us4BCE+e7iTfKvmNwSu5wQKX07bcrMWTZLiQvLckMnAr mvLXdj8xilBLIX+wswfu85ILObLhKCA43uYsb6IylBVUvcIGOTVw/jnte2lCWZyFzYV+WBBhkvCh7 54dKyhqCa3VTDyb/Xh5v/tN0iI08v/QKDrrH8bAujGXoAwpdJP9y7OCeWI3mF3amXkQko9SSnIsxM hJdFa18g==; Received: from authenticated user by zero.zsh.org with local id 1nqn2V-000PKR-D1; Tue, 17 May 2022 02:34:23 +0000 Authentication-Results: zsh.org; iprev=pass (snd01002-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.18; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd01002-bg.im.kddi.ne.jp ([27.86.113.18]:61281 helo=dfmta1027.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nqn1u-000OzI-Tt; Tue, 17 May 2022 02:33:48 +0000 Received: from mail.biglobe.ne.jp by omta1027.biglobe.ne.jp with ESMTP id <20220517023340801.KAFQ.59834.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Tue, 17 May 2022 11:33:40 +0900 From: Jun T Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: E02 failing on Alpine / musl libc Date: Tue, 17 May 2022 11:33:40 +0900 References: <2d2b70ef-60b7-4f4b-b85a-8f651a8179ba@www.fastmail.com> To: zsh-workers@zsh.org In-Reply-To: <2d2b70ef-60b7-4f4b-b85a-8f651a8179ba@www.fastmail.com> Message-Id: <89079237-6D93-45F0-B11B-7516372CB370@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 50242 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/05/16 16:14, dana wrote: >=20 > I assume it's to do with this: >=20 >> Starting with version 1.1.11, musl provides a special C locale where = bytes >> 0x80-0xff are treated as abstract single-byte-character units with no = actual >> character identity (they=E2=80=99re mapped into wchar_t values that = occupy the >> Unicode surrogates range). I tried Alpine for the first time, and found that E02 and two other = tests (see below) failed due to this "special" C locale. In this "special" C locale, str[0] =3D 0xXX; /* any value in the range 0x80-0xff */ mbrtowc(&wc, str, 1, &mbs); sets wc to 0xdfXX (not just 0xXX). For example, if 0xXX is 0x83 then wc is set to 0xdf83. This is indeed "special", but it seems globbing etc. works without = problem. So I think we need/should not "fix" this, because 0xfdXX (or \ufdXX) is = the correct representation in their "special" C loale. IF they want they can just change (in their package) the expected = outputs of the tests to their correct values. These are the two tests that fail due to the same reason: ./A03quoting.ztst: starting. --- /tmp/zsh.ztst.13004/ztst.out +++ /tmp/zsh.ztst.13004/ztst.tout @@ -4,4 +4,4 @@ 16#4D 16#42 16#53 -16#DC +16#DFDC Test ./A03quoting.ztst failed: output differs from expected as shown = above for: chars=3D$(print -r $'BS\\MBS\M-\\') for (( i =3D 1; i <=3D $#chars; i++ )); do char=3D$chars[$i] print $(( [#16] #char )) done Was testing: $'-style quote with metafied backslash ./B03print.ztst: starting. --- /tmp/zsh.ztst.20798/ztst.out +++ /tmp/zsh.ztst.20798/ztst.tout @@ -1 +1 @@ -f0 +dff0 Test ./B03print.ztst failed: output differs from expected as shown above = for: printf '%x\n' $(printf '"\xf0') Was testing: numeric value of high numbered character