From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3245 invoked from network); 13 Feb 2006 10:54:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Feb 2006 10:54:26 -0000 Received: (qmail 21207 invoked from network); 13 Feb 2006 10:54:21 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Feb 2006 10:54:21 -0000 Received: (qmail 6175 invoked by alias); 13 Feb 2006 10:54:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22255 Received: (qmail 6166 invoked from network); 13 Feb 2006 10:54:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Feb 2006 10:54:17 -0000 Received: (qmail 20926 invoked from network); 13 Feb 2006 10:54:17 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 13 Feb 2006 10:54:17 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly38d.srv.mailcontrol.com (MailControl) with ESMTP id k1DArrZ7011865 for ; Mon, 13 Feb 2006 10:54:16 GMT Received: from csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 13 Feb 2006 10:54:11 +0000 To: Zsh hackers list Subject: Re: Another idea on how to insert illegal multibyte characters In-reply-to: <20060211101905.GA21506@dot.blorf.net> References: <20060112034200.GB28221@dot.blorf.net> <20060211101905.GA21506@dot.blorf.net> Comments: In-reply-to Wayne Davison message dated "Sat, 11 Feb 2006 02:19:05 -0800." Date: Mon, 13 Feb 2006 10:54:01 +0000 From: Peter Stephenson Message-ID: X-OriginalArrivalTime: 13 Feb 2006 10:54:11.0825 (UTC) FILETIME=[D295AE10:01C6308B] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-06-00-02 (www.mailcontrol.com) on 10.68.0.148 Wayne Davison wrote: > On Thu, Jan 12, 2006 at 09:23:19AM +0000, Peter Stephenson wrote: > > The completion system is a bit more quoting aware: it knows whether or > > not it needs to insert a backslash before special characters because of > > quotes earlier on the line. Ideally it should handle unprintable > > characters at the same point where it tries to do that. That doesn't > > need to be done at the same time, though. (I would hope it could be > > done independently and prevent the equivalent code inside zle kicking > > in.) > > The attached patch is an alternative to my older patch that changed > stringaszleline(). This one changes add_match_data(), which means that > it is happening early enough that zsh could be made to figure out how > to insert the $'\123' sequences into single- or double-quoted strings > (though it does not yet do this). This patch also fixes the updating > glitch that I mentioned my last patch had. Any reasonably consistent attempt to do this, even if it's incomplete, strikes me as a good thing. 4.3.1 isn't going to be completely multibyte-aware anyway. -- 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