From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9386 invoked by alias); 15 Feb 2012 14:48:22 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30229 Received: (qmail 7808 invoked from network); 15 Feb 2012 14:48:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL,UNPARSEABLE_RELAY autolearn=no version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at yahoo.co.uk does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1329316937; bh=TdRrmSaiCAudLhFgS9t9S6IbF7E0BkiAukXek0EWF2s=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:In-reply-to:From:References:To:Subject:Date:Message-ID; b=A/qJvt6g9QhkCUfZFIv3CN9RBqYGb+4N5uzAKjW3VBhck/r8jCqfqyVYxxlZ8JILTHW3l54SCq3o680kHBaml9fuS47wb7cdpeCQ6z9GutoDB1BFR4hqJtvbILpP0a5iEpSGnDQicZL0uXJfbcggRjEtwX0Zb9EKqoVQCcNKh9g= X-Yahoo-Newman-Id: 194329.58593.bm@smtp125.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: KHn.KskVM1lbzLs3iFAO6Ollaqc6TNtalhcxceK_qMbMElg 8.59BRHgDdlVoUxJWpthLycLIpeSPQsI7T4JKEERXMCX9X6yJeVrgdpWKzUb w7P7QQQmp7N_0aghJF5Mi2aGNYS.W6HMGm1LKb7HWdbDIzrJmiNcOGSOFwDQ Q1jMnc7kO1IPAnNITZbSigv0mbJmZKGcLf.ugPKHezpYR7Kw7I7aCthBX63J 8p_OEUt2Dt0Ashnw5Wu25tSF5fDQDoVunybobX361eixrWfFi2h6AxUgp1MC gds8e862Y13DNnaXwNoCAKLr4kx.GahrKWofDtlV3WURQjh8yWR6KyWQpCSm j7KOaGVH8odWc7116BzVmQMjBPIpBcqxindQQZYXQLrsmccrjJ7vf6ck- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <120215001413.ZM22585@torch.brasslantern.com> From: Oliver Kiddle References: <20120215021519.GA19525@xvii.vinc17.org> <120215001413.ZM22585@torch.brasslantern.com> To: zsh-workers@zsh.org Subject: Re: printf %s in UTF-8 is not always POSIX-compliant Date: Wed, 15 Feb 2012 15:42:15 +0100 Message-ID: <32370.1329316935@thecus.kiddle.eu> Bart wrote: > > Am I understanding correctly that the intent here is that é is a two- > byte character so %2s should print the two literal bytes, rather than > print the single logical character in a field two logical characters > wide? That's correct. The POSIX definition uses bytes. For multibyte behaviour, there is an L modifier. I don't really see the sense in it myself: I don't want to write low-level stuff in the shell. Frank Terbeck wrote: > Frankly, that would be the vendor's fault then. There are many *MANY* > ksh implementations, that make for a reasonable link target (ksh93, > pdksh or mksh - to name just a few). Zsh is not one of them. The fact that zsh is far from a perfect emulation doesn't stop it from being useful. I don't necessarily want to install a separate ksh package and zsh will run ksh scripts at least as well as pdksh. Oliver