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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,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 13564 invoked from network); 15 Mar 2022 16:54:07 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Mar 2022 16:54:07 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1647363247; b=aNjp4aVhJGogaU2zWVRD4B2BHj/6yGpk5o2PAH+qQLQ0Ywk524y19t9vo2N49mNVzPNzIHiss4 st3I74PUuV6beNEcC6hp4zTDxsjPfXBStvRyCEbJn/3V3zFMd9jK3/HPklE+p1ryTESmBr+xdd fMJ7v6HiIiVpXCtR+hqkZJXLnfbAwMdNQdRgLtHa1Qq4j6Z0UUpm3J0sxwiI06pRkdu+ridBhQ xM1nLmpjDIO5lkn3kS7SV4nPVByg4Ldx0EVOnGjMbJcBM8MddO0h1dB5h4O2NRWAjAPF6qh+5F vYz8aGyssfqtb7us3pPW0HJNkHzWUNuPzHBFj3luNrn1ug==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-pl1-f175.google.com) smtp.remote-ip=209.85.214.175; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1647363247; bh=/ovTqwTeLR3fMAlpc1Jf/23W8JI/fR+hwn2zMuTJR/s=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:References:In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=nmNK7IPiij7tnCPyJko+CvDWVmtYD2CrcFZWijY0pboLh9Snq07qa35fOPrH8Wlh+EIAX1SoLc LtvA6XMZtHQbmLu8zakoU2voYtqS4094bzyfIhaCDxvcRMTLDTJhIy2ztZFPrh5ZhXFjXO31ai OdFvZB7DaWPMaW4Qn3onZ3jJN9CHIpGVHersFL5KGfdZJvyrgTZBLpAXbFyfE1smRD3JMiQzb2 fQUh4qIZ4Y0Ob+JZ9VqeLJ6JJLYtTPH5xob8Y4OoVlARqWiCRKtdhDzKfySD+acXfPqJ0/u+t/ 9VAAUZQDon6MH1USapMwycQJHw5Oo6Co7DVASpvX4m/+Yw==; 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:To:Subject:Message-ID:Date:From:References:In-Reply-To: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=TN+zfRL9KaW+r+tbXrGrtYsq7yMi+pkrs3mfD00i7dM=; b=P4PmwvXrfF1+o8SL77Rl7bMGdC W/npkv2/xZjixzQ1xNGRqyMSGYfcNsOQXm1wCLJN/f06cw+XUe9f4We7BApsJ6Uy7JmiUA2z2k72c 0y485Me5n6OGzc+B9tvpGXJkvTcnLPGAVj9ZRBRNpkrryHE/puCFzASn7IshenvQmBK8FKm/Fe6N+ piXRwwbcuEeWWI78Zjq7eYTSSnS8JtqhHKhh//QabHQB6gnSZPjGqyNBhbaBpXcYQbuR2tIQM87UV b0Y3SLMyw2iQuCI8L6RBmF2Afd1cEwu3MMQbjsfIjaiHyfyv7bkcfTnSLII4oVpvNOFgtFHbFOX3e vYA6Hjyg==; Received: from authenticated user by zero.zsh.org with local id 1nUAQx-0005Lx-20; Tue, 15 Mar 2022 16:54:07 +0000 Authentication-Results: zsh.org; iprev=pass (mail-pl1-f175.google.com) smtp.remote-ip=209.85.214.175; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-pl1-f175.google.com ([209.85.214.175]:43782) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nUAQj-0004yf-A8; Tue, 15 Mar 2022 16:53:53 +0000 Received: by mail-pl1-f175.google.com with SMTP id w8so810116pll.10 for ; Tue, 15 Mar 2022 09:53:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=TN+zfRL9KaW+r+tbXrGrtYsq7yMi+pkrs3mfD00i7dM=; b=WtPj1/2s63BZKX+cTYC4O3MgYQQz5DerBzFI0CRTAa5b9uLWfvIpqG2UrHQgzB9Kkv vWcEwEA+UiUr3Z/dytj0y0dEHdqbNVvx/T3zJoqm8p4ED6enjibsIm4myc5h3BAKnrPS jvhPEo8r6tTcbli27SD+1S/WFCSINHhTfYCXxM8XYfSWSyceOEBR6tkscCyOW8p+V3tL X+9vpJdAORKSpnDa5mK8KvVoKGQaglmtoQG878WUVSXb+nF4A0egEtgfzFnaUGfod8Jr 9tQyWIISHABkHIx/9CG6qjQZZFD3bx6lBLsBtI9kzYUjLbPDgz94Mn+/XAupq3jRNEQX qQtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=TN+zfRL9KaW+r+tbXrGrtYsq7yMi+pkrs3mfD00i7dM=; b=fmaKLUmraJ8YcRM++dfHcWYOchYKstaQXIp1idstbXCbt2BJlyK80VGJQuNzYF9ihY DY4FwRZPvzPHU3oFuW5l7eSv/0RGRVkhxmlNtv8upV7cCAFNiin4aR3rESzTur72gwYu JdKtQyApITJJLDyq8MOqdFkM1cVB3NcxlnrGQWfCAV/77cwTS88aDYV7OYc63piyKheo BrMM4b9FWYs3lv+zKoKjWCXGhHmjhzk3YsNp3Ns8ScChODhAohv+br1qF6n29QCl5qXN f8zt5XRAnY6BLz+xi+Rtn2+PmleAeuC2PQQ2X67RxC+Uudd8+Na6SrryldvixtnfTrIz yFBg== X-Gm-Message-State: AOAM530DRjEMmD2lSDEBGCY2cwJgiz1hkXGkVO8uiMNpBDUMlONwQDIz VgF9VE+HaK2IGnRB3lEdTX3l9LY8/KSK0msfCQKgczwK X-Google-Smtp-Source: ABdhPJx5z0phlaFzg/xDDcH3CRiVw4EOQKT25PIbtziHFyGHVCUbgQuHE036tHBHQFeDkFijYQSH9TWOcLoepa/Zexo= X-Received: by 2002:a17:90a:bb0d:b0:1bd:3baf:c8b4 with SMTP id u13-20020a17090abb0d00b001bd3bafc8b4mr5737421pjr.15.1647363231813; Tue, 15 Mar 2022 09:53:51 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a10:466:0:0:0:0 with HTTP; Tue, 15 Mar 2022 09:53:51 -0700 (PDT) In-Reply-To: <20220315163347.GA617047@zira.vinc17.org> References: <20220315163347.GA617047@zira.vinc17.org> From: Mikael Magnusson Date: Tue, 15 Mar 2022 17:53:51 +0100 Message-ID: Subject: Re: Test ./E03posix.ztst was expected to fail, but passed. To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 49848 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 3/15/22, Vincent Lefevre wrote: > With the git repository on Debian/unstable: > > [...] > ./E03posix.ztst: starting. > Test ./E03posix.ztst was expected to fail, but passed. > Was testing: Width of %s is computed in bytes not characters > ./E03posix.ztst: test XPassed. > The following may (or may not) help identifying the cause: > This is considered a bugfix in zsh > [...] > ************************************** > 60 successful test scripts, 1 failure, 3 skipped > ************************************** > > I don't know the current status... Has this been discussed in the > austin-group list? > > Note that "wc" has 2 versions (-c for characters, -m for bytes) > because each of them may be useful. I would expect something > similar for "printf". Noticed and discussed a bit on IRC the other week/month (sorry for unedited irc log) 19:16 oh speaking of tests, i have this in master 19:16 Test ./E03posix.ztst was expected to fail, but passed. 19:16 Was testing: Width of %s is computed in bytes not character= s 19:16 ./E03posix.ztst: test XPassed. 19:16 The following may (or may not) help identifying the cause: 19:16 This is considered a bugfix in zsh 19:16 was this fixed and someone forgot to remove xfail? 19:16 or is my system magical 19:19 not sure 19:20 what does bin_printf do with 's'? 19:24 also not sure 19:24 if i replace two characters with a single =E3=81=BE it misaligns for me though so no idea what's going on 19:24 (3 bytes, 2 cells wide) 19:24 one more thing 19:24 I tried the printf manually, outside the test suite 19:25 prints the expected result 19:25 I run the test. passes. (=3D failed as expected) 19:25 does it fail as expected in the suite for you 19:25 ah 19:25 maybe it only sets specific LC vars 19:26 with LC_ALL=3DC it works 19:26 but also wouldn't consider it a bug in this case 19:26 hmm, also with LC_ALL=3Dsv_SE.UTF-8 19:26 but my LC_CTYPE is set to that, and LC_ALL is unset 19:26 confusion 19:26 LC_ALL=3DC gives me a single space. which is reasonable 19:27 oh these are explicitly run with sh emulation too 19:27 the tests run force some locales but not others 19:28 oh forgot that 19:28 still produces expected output interactively 19:28 try running 'locale' in the test and removing the 'f' flag so we see what locale it runs as ? 19:29 i'm very confused by this test, when i edit the command, it doesn't change the result of the test, but if i remove the whole line it complains about a syntax error, so i AM editing the right file... 19:29 the test has the 'f' flag 19:29 oh right 19:30 it has my locale except LANG=3DC which is irrelevant 19:31 my locale is C.UTF-8 (mostly) and I get plain C instead 19:31 I wonder if the test should move to D07multibyte 19:32 yeah it passes in D07 without f 19:33 still fails with a doublewidth japanese char though 19:33 very strange... 19:34 anyway, i guess it's not an urgent issue then 19:35 with \'e and Japanese I get three spaces 19:35 but in the test and interactively 19:35 should still move the test though? 19:35 or figure what sets the locale to C 19:36 oh fun ztst.zsh:27-31 19:38 i don't get why i get different results when LANG is set to C, LANG isn't used since all my LC_* vars are set 19:38 in D07 ? 19:39 or in E03 ? 19:39 in E03 19:40 so with LANG=3DC it fails as expected and with LANG unset it xpasses, right ? 19:41 well, the only difference i could spot in the locale output was LANG, i didn't try unsetting it to see if that affected it... 19:41 Seems more consistent to unset $parameters[(I)LC_*] 19:41 the modload may not be available 19:41 LANG *should* have no effect 19:41 you remember that 'locale' output uses "" specially ? 19:41 just set LC_ALL 19:41 yeah 19:41 It's loaded on L44 19:42 L44 of? 19:42 Test/ztst.zsh 19:42 line 43 is wrong though 19:42 you would know :) 19:43 Yes but if no one has complained yet that zsh/parameter is required, I say keep it :) 19:44 but how will we port zsh to abacuses? 19:44 we can port zsh to other systems without requiring the full test suite to be available --=20 Mikael Magnusson