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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18777 invoked from network); 25 Apr 2021 02:21:22 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Apr 2021 02:21:22 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619317282; b=CbbjVgfKl0ofmHRJuoaT3VeZBFrwpPrf+QLRcKSwDn9R5hxZvUzaSLUcETiDi5y3BkMSJRKdyg HUDScAfPGvDYM6tli7olLSsc1j2RvcbHAj/PEwFyf33sxTo1uy+MwgNQctrmlITfhK39Dg64gM MEZwMkCikC3kkO0C8D7a4DoIy1xqOWZfngkFnaezeyONYfTXJtff2jneYQVYlZgKSsgS4wdI7D TweGtK73Opl4eVWb94Iq7e9Bv82IV1MTsnVY/oR8lP7Oh44sMhFF7E1vW/14mE4Sl4TIZM42oI lwom8NKZAxxNdlijYE1E6dXx2cYSim6KBWunmH7Ez/cVgw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f48.google.com) smtp.remote-ip=209.85.210.48; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 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-20200801; t=1619317282; bh=GELUDdKw1hy4lmib/rgN5VhHTCG4ESf6E2WR2hJWZm8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=FwgSZE38gRTwzpTT/4SGmjJHby9oGChdRvLyGbEgBdp89eO5zTZbQO9KQ3nfEhszpUfWzy9uMP +O65nktIywqGkFh4LFwtz59T3adjMfXkHK1SiBsFjUPk7056fNnbbzMELCoJdu4RMZzS6ekN7P dGegQVNb0TeZG6gezilMtvrK+jGS/6bYtm9CR/NPVaDuvSyvYspDCEzSpkteT1p8huXNTyoM3s L6r2oZ99knYnxyLak1kF9HbQyzHkAJLG1YcSpNYUHMnsXyQJCRajaJxoO0GB8M0PWpboRyJR3U aNBauIOnCwzr6FU7iv8IOyO7KSy3upZbYDd/fnyVmmqCsw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=GELUDdKw1hy4lmib/rgN5VhHTCG4ESf6E2WR2hJWZm8=; b=ulS9iA+hjY1Ax0prWNk+WDMd0O l38slmt/5rgTccEjy++fQ2vAyoOLYRjfDeZyLdgYT/8+p5NwY4+meJKHhms9ZjyLU9OTUMb+ywbZb 4vuRRRT/weDTpLBc4JnwSbB6hlpn2tsFVmbu6OW0ql4qL2YGT73VWxa0KxGgUg/6+fG5Q2mqJ7+YV 4DSoJpWGsqX3b6Ke3SkvcObPKsOXx5mKrSp45//0drv5cZ4VYUDqKX9T/M6aDXlIZDdOLBo18RuRP GueQb2+kXO2v8wNmby/qUW6y6GT9NvbQaiYKPKHPwuV0071F6xgtkaXvltR/pQ3FfoskhbC5J0nHa 86FDz18g==; Received: from authenticated user by zero.zsh.org with local id 1laUOf-000HAc-9O; Sun, 25 Apr 2021 02:21:21 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f48.google.com) smtp.remote-ip=209.85.210.48; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f48.google.com ([209.85.210.48]:42774) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1laUOP-000Gt7-1u; Sun, 25 Apr 2021 02:21:05 +0000 Received: by mail-ot1-f48.google.com with SMTP id y14-20020a056830208eb02902a1c9fa4c64so12332810otq.9 for ; Sat, 24 Apr 2021 19:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=GELUDdKw1hy4lmib/rgN5VhHTCG4ESf6E2WR2hJWZm8=; b=aqIK7TuZRVr1vVn2wQ81VLh9DYhQ84eFxB8ZY6fidwIjLlHsNIIZJUpZHt+X/Z0r8v NMx65tco7edts7YFyC0NQ+pC2TV8xQQJH3++Nabff1bfYVX2KCFsZk0IUYwdDud+C1RR Y6dZX7NBldstFAxMNoHbKq2/V1ToXacR7VNP1GbqqoOaC9VfhXHOWMD3IkR3XvUG3plj L5BY5DyKoOOGTKdrfBQPDQIDKQBEcBnuMENyrydDslUdgMbN8g5LgDNIR2WkYeHBG1Oj f6GiHrxHbb2siIKPnfSVYqgoWIHMTjhBRghDf8FJ+oz8AMfVojNSV/cISEgBIELJa+Sd DMKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=GELUDdKw1hy4lmib/rgN5VhHTCG4ESf6E2WR2hJWZm8=; b=DUQNoG9J+352wEBrHhuqKLrVR7x1Sfcp0d9eiGjOYBZ4Z/riPPskcEtdI6gvQBPPWv M84vkUC3mrjepIj07kqwTnMpyFSchdrhOEECOEAoHiAQYCRJBmn/Omvd7uSC3ITOBwrO sZZmZk0el3xO4dEwnT4NjbwcEbkPdJJrcVk/Mn/R0lh1Jq9n2z9mxTbBjOjh2vHX9pP+ sGAZR54o/Z+zxNrFlQrURBWKRL0dktWkYRIU9wv2HqFsID0AJGz9OmGCZeWqLhtaTI/R 8avtAP80NW0ixP48PXmwAy0GFE4cHS6ThAt8gl2WDhYnmaYoBdfU5KZs+DjJY1wdC+eY Jp2g== X-Gm-Message-State: AOAM531gO05qFYfeI5zm2qUdssY9BMsxpvHjc1oflaHFrxUY21a3sV7U 4AdQWsrJ0s5P6dvkFKuzBcyCMvygPiaAWniBzt83HvQAedk= X-Google-Smtp-Source: ABdhPJzFwDfUutyiD2+Mgybbi4aIzd4kV2HK0vW307bdn+C6knIM+UlHp8ZHmwrMUHIcWR/mtL9ykhcgIzcFhdHMO8Q= X-Received: by 2002:a9d:4d9a:: with SMTP id u26mr9053311otk.161.1619317263855; Sat, 24 Apr 2021 19:21:03 -0700 (PDT) MIME-Version: 1.0 References: <20210411175726.hxnm33mxoska2tsm@chazelas.org> <20210411194205.e7mr2wx33wlkq3rs@chazelas.org> <20210422135934.GA154089@zira.vinc17.org> <20210423165326.GB2033191@zira.vinc17.org> <20210424070940.afk5alasj65hyvsq@chazelas.org> <20210424215250.GC2587578@zira.vinc17.org> <20210424231826.GE2587578@zira.vinc17.org> In-Reply-To: <20210424231826.GE2587578@zira.vinc17.org> From: Bart Schaefer Date: Sat, 24 Apr 2021 19:20:53 -0700 Message-ID: Subject: Re: sh emulation POSIX non-conformances (printf %10s and bytes vs character) To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48700 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 Sat, Apr 24, 2021 at 4:18 PM Vincent Lefevre wrote: > > On 2021-04-24 15:28:21 -0700, Bart Schaefer wrote: > > On Sat, Apr 24, 2021 at 2:53 PM Vincent Lefevre wrote: > > > > > > And perl has the same issue as zsh with double-width characters. > > > > This implies to me that it's not actually a zsh problem. > > Why not? Because multiple programs exhibiting identical incorrect behavior points to a problem in the C library or a system call.