From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13373 invoked from network); 14 Feb 2007 10:17:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Feb 2007 10:17:25 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 77881 invoked from network); 14 Feb 2007 10:17:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Feb 2007 10:17:18 -0000 Received: (qmail 17447 invoked by alias); 14 Feb 2007 10:17:15 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23175 Received: (qmail 17437 invoked from network); 14 Feb 2007 10:17:15 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 Feb 2007 10:17:15 -0000 Received: (qmail 77577 invoked from network); 14 Feb 2007 10:17:15 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 14 Feb 2007 10:17:07 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly10c.srv.mailcontrol.com (MailControl) with ESMTP id l1EAGpjf015422 for ; Wed, 14 Feb 2007 10:17:03 GMT Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Wed, 14 Feb 2007 10:16:56 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.8/8.13.4) with ESMTP id l1EAGqA7016739 for ; Wed, 14 Feb 2007 10:16:52 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.13.8/8.13.8/Submit) with ESMTP id l1EAGpKF016735 for ; Wed, 14 Feb 2007 10:16:51 GMT Message-Id: <200702141016.l1EAGpKF016735@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: Quoting problem and crashes with ${(#)var} In-reply-to: <070213234815.ZM5424@torch.brasslantern.com> References: <200702132111.l1DLB5rA003849@pwslaptop.csr.com> <070213234815.ZM5424@torch.brasslantern.com> Comments: In-reply-to Bart Schaefer message dated "Tue, 13 Feb 2007 23:48:14 -0800." Date: Wed, 14 Feb 2007 10:16:50 +0000 From: Peter Stephenson X-OriginalArrivalTime: 14 Feb 2007 10:16:56.0362 (UTC) FILETIME=[415598A0:01C75021] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-06-80 (www.mailcontrol.com) on 10.67.0.120 > } (However, the ZLE function insert-unicode-char correctly > } shows it as control character, ^ followed by A with a grave accent.) > > That's what I expected ${(V)x} to do, but instead it displays it as a > \u escape. >... > I'm asking for two things: > > (1) when "character not in range" we don't treat it as a fatal error > and bail out of the whole surrounding loop; and > > (2) regardless of the locale, single-byte values should always be > convertible to something "viewable", either \u00xy or \M-c. > > There might be cases where "character not in range" is a fatal error, > but this doesn't seem as though it ought to be one of them. OK, I misinterpreted... I've certainly no objection to cleverer use of escape codes for things that can't otherwise be output (where we can test this, obviously). I thought you were saying "treat this as a directly printable character" in both cases. Passing the character through the appropriate version of nicechar() ought to help. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview