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 20584 invoked from network); 22 Mar 2022 21:41:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Mar 2022 21:41:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1647985312; b=PEIhwKgnouUXSG2BEbig26fPSrb4gEhlZVMwOG/VXsVJDhGpdqA2xaA2q5St1Tjno/Tzm17Q4w i2YsW0dqZeG5RbfmxfHZbipQAcceeqPvWeomA8gNxSEj3+8E4RKRpxnngYB50On93hHeiACE7t 4sQmzPbGx3wvfwQF68uX59i7KU9janZYQkfNZUCSDgaS1yL0T44eRZ4MNAtEYFLtUk3AKMOnUH zSOcEjfxZai6TGPbor8ad9+7zziWCFi5jP5eAAPYiVsyMROBWWcFUcbhTSIy3Whmj4/KP4Emtf akU0qZhdOnmzzwsUjdZRifs2pxUmOW/PlsDeq+v3b3ZmKw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f176.google.com) smtp.remote-ip=209.85.219.176; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1647985312; bh=XuP7aEMwWZ/mx5OXXAx0+4S4o0956SZV3cRdUxaKM+U=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=gleutSENcfRVFcJS5z5yWHek3qMak9C6iH4Z8VWiuGASo9VlQmX++M6K9NLUZKP2KEkeH3+Cqp dA3HSlIeZQh/6nW1SWzcTtG/tabuU6QaKD6eI/7A+EcRyG0L4T983TiDJVgjJfS4pJY827VM6I XZ2ZJG37k6rCI+oG5qMFKC2VwJE2lqz5dpbNWZOIhV3sA2qJ3T+Is+xs55F/cgFAJ6aZ0nR5F0 Cp7zusWLzC1MyEOvVWHbttY2QLLoWZAru/o6FW4yglo5pVK1dWULxmKRAcvDd+DdMYimRhuft7 djmj+nTETnbELd1P1HO9XhQHJzWKRojzdLMFmT4Vlr/YbQ==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=bYnqQ8dXV1Kpasee5OspzJNizddEu966bYnjWuQ3twY=; b=ZP2DcLK1Mvx86Dwppgg3cA5iIx GVJhEhZxOI6gdlClh8171F397YLHw22Lwf8nEYjY3yZYpaU5eOLxO4lUCRlQlFdAglH7vMh8j0zUd mkEQFBWNIQg1DDSeB+5gkG6qj/bd+eQnrRIkDOpFZ8rNQUIaEwCLlEd0tcOdlgsR7xXwCZ88ik9Sb I+GYQDJbrHC09K1VIvHhqXkjX7PCrA/rrkIQl7umlyhdsbGnIyy/GoujeGxr9oN4f5Fgd3h1Fqy0P MHz5PYw0nH9w18YXNduewwpoVHScdGns+S/hxzoRPwpR5jdkm5ZH5pmxXk1h13GNAoa6ShrAqut8R +EEvzt6Q==; Received: from authenticated user by zero.zsh.org with local id 1nWmGG-0003iS-2B; Tue, 22 Mar 2022 21:41:52 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f176.google.com) smtp.remote-ip=209.85.219.176; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f176.google.com ([209.85.219.176]:41857) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nWlgJ-0000wD-73; Tue, 22 Mar 2022 21:04:44 +0000 Received: by mail-yb1-f176.google.com with SMTP id l2so35926188ybe.8 for ; Tue, 22 Mar 2022 14:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=bYnqQ8dXV1Kpasee5OspzJNizddEu966bYnjWuQ3twY=; b=p1PIv93vE1VDmgBv0zMznOOlWfSALcfIdUNkvNpzBHQNefBrJD484HigB4SNMAKsW6 sVkZ3WwAwssT7w3iMoSMUK2+UQsJT+yN7o4vxRvVO2983MnaI1n+Wn1PWms8QjZn0M2M 0I65STiPpwwt5gL3a1yoAGOObgS/YfG9kbPZagu4TSzG9PPmyYi2vpwk1rOAii41sRcz 0un4OqQADOIwiPKUFMLis89dDZA7c2nD7Nls9Tkn8e8dkBuspwUIsESBrIiVkeHWyX4o AnyspYE/f2cCK573G9yfu6abRor1uUrNWElXw2Mumxlje9HgZP/LJzkst9TQuF1IDf1I f3OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=bYnqQ8dXV1Kpasee5OspzJNizddEu966bYnjWuQ3twY=; b=i1zcBlDKRQIFnx8ZwutJPxFkOjejjlcPdQLNrFa/OHsiWmfsDdnVNuX+LZcXm3cUaq BWanqZTAzg9J6qP+FqtLoyC5C/yuW74JDyCX2ndeu6VtBBk9LhsSpNGWAR6QsOrXis0z 1L+lZt15AqbnGXbhNPNX6Cnok/Mqk8BLNdalqJy/7ctcsgbnWgJr/1hW56Ych6AmcIsH Ko5YwkbG31uWBmG9awPXpx83V/o3S4U5DFY5GMUlv5TmBOSexxg8WXpH2TdwZj9/VJQm Ap2NbVHxD9C8oW1AxyJuIUH2wU2ycygjX9tZdYmgs1/r/HI/l1uSYWEkq5N0v5w7kG0N Tn7g== X-Gm-Message-State: AOAM532TUmAsEfzH+vPE2LamgO8BSNOK1Bytb3lxwguoLEyXVOEGVAwb 0kH0C02EwGEqctdk09Uq8p+iKljFEAKzBgdvD0HgjaGo1T+BWw== X-Google-Smtp-Source: ABdhPJy/l2WA5n6ZzOfyvhTPMCFGq8FRNPzFOoymJukK7hoha34BLYCmGWl06sSClpzaH3EZl0IwxvVMYHvgGeTAivY= X-Received: by 2002:a5b:8ce:0:b0:633:c6c2:4a9e with SMTP id w14-20020a5b08ce000000b00633c6c24a9emr19674281ybq.406.1647983081908; Tue, 22 Mar 2022 14:04:41 -0700 (PDT) MIME-Version: 1.0 References: <20220315163347.GA617047@zira.vinc17.org> <082447B3-C6A4-44A1-A3D3-7FD89D707480@kba.biglobe.ne.jp> In-Reply-To: From: Bart Schaefer Date: Tue, 22 Mar 2022 14:04:30 -0700 Message-ID: Subject: Re: Test ./E03posix.ztst was expected to fail, but passed. To: Jun T Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 49879 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, Mar 21, 2022 at 8:33 PM Jun T wrote: > > [1] Does this patch solve the problem? All tests pass for me on Ubuntu (which isn't a change from before the patch, but is not a regression either) > [2] Why is the test marked "expected to fail"? POSIX printf counts bytes regardless of locale, zsh printf counts characters in multibyte locales. The test is expected to fail because the sample output represents counting characters. If the test succeeds, zsh is not following POSIX printf requirements, and we need to find out why. Theoretically, if we've correctly implemented POSIX_BUILTINS, we should not have to test in the C locale in order for this test to "fail as expected" and if it succeeds (as not expected) in any locale, something is wrong with the builtin. Sorry for not following up on that sooner. It may mean your patch is actually masking a problem. > What does 'F:This is considered a bugfix in zsh' mean? # It is also possible to add lines in the redirection section beginning # with `F:'. The remaining text on all such lines will be concatenated # (with newlines in between) and displayed in the event of an error. Specifically in this instance, we consider it a POSIX bug that '%s' always counts byte positions and that zsh has fixed this when it counts character positions. > If the test is expected to be run in C locale, then isn't > < St=C3=A9phane> (a single space before S) > the "correct" result? Yes it is, but it's also the expected result for POSIX_BUILTINS if run in a different locale.