From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27638 invoked from network); 6 Mar 2008 01:27:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Mar 2008 01:27:56 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 70348 invoked from network); 6 Mar 2008 01:27:49 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Mar 2008 01:27:49 -0000 Received: (qmail 496 invoked by alias); 6 Mar 2008 01:27:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24686 Received: (qmail 484 invoked from network); 6 Mar 2008 01:27:45 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 6 Mar 2008 01:27:45 -0000 Received: from prunille.vinc17.org (vinc17.pck.nerim.net [213.41.242.187]) by bifrost.dotsrc.org (Postfix) with ESMTP id BBA238029404 for ; Thu, 6 Mar 2008 02:27:40 +0100 (CET) Received: by prunille.vinc17.org (Postfix, from userid 501) id 119F2208D119; Thu, 6 Mar 2008 02:27:39 +0100 (CET) Date: Thu, 6 Mar 2008 02:27:39 +0100 From: Vincent Lefevre To: zsh-workers@sunsite.dk Subject: Re: printf %s in UTF-8 is not POSIX-compliant Message-ID: <20080306012739.GM15833@prunille.vinc17.org> Mail-Followup-To: zsh-workers@sunsite.dk References: <20080304012917.GA15833@prunille.vinc17.org> <200803040940.m249e7DC012517@news01.csr.com> <20080305002721.GF15833@prunille.vinc17.org> <080304173413.ZM19273@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <080304173413.ZM19273@torch.brasslantern.com> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.17-vl-r21552 (2008-03-02) X-Virus-Scanned: ClamAV 0.91.2/6142/Wed Mar 5 21:09:30 2008 on bifrost X-Virus-Status: Clean On 2008-03-04 17:34:13 -0800, Bart Schaefer wrote: > On Mar 5, 1:27am, Vincent Lefevre wrote: > } Subject: Re: printf %s in UTF-8 is not POSIX-compliant > } > } > printf() { emulate -L zsh; unsetopt multibyte; builtin printf "$@" } > } > } There's a missing semi-colon: > > No, there isn't. Zsh doesn't require it, even though bash and ksh do. Zsh does require it too: vin:~> zsh -f vin% emulate sh vin% printf() { emulate -L zsh; unsetopt multibyte; builtin printf "$@" } function> -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)