From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5684 invoked from network); 21 Mar 2005 17:12:41 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 21 Mar 2005 17:12:41 -0000 Received: (qmail 79810 invoked from network); 21 Mar 2005 17:12:35 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Mar 2005 17:12:35 -0000 Received: (qmail 26883 invoked by alias); 21 Mar 2005 17:12:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21044 Received: (qmail 26874 invoked from network); 21 Mar 2005 17:12:32 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 21 Mar 2005 17:12:32 -0000 Received: (qmail 79436 invoked from network); 21 Mar 2005 17:12:32 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 21 Mar 2005 17:12:23 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id ; Mon, 21 Mar 2005 17:10:49 +0000 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 21 Mar 2005 17:14:24 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j2LHCM1I015777; Mon, 21 Mar 2005 17:12:22 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j2LHCMjW015774; Mon, 21 Mar 2005 17:12:22 GMT Message-Id: <200503211712.j2LHCMjW015774@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk (Zsh hackers list), Mikael Magnusson Subject: Re: crash in tabcompleting In-reply-to: <237967ef05032104425384f32b@mail.gmail.com> References: <237967ef05032017571464ae4f@mail.gmail.com> <200503211106.j2LB6mHo006379@news01.csr.com> <237967ef05032104425384f32b@mail.gmail.com> Date: Mon, 21 Mar 2005 17:12:21 +0000 From: Peter Stephenson X-OriginalArrivalTime: 21 Mar 2005 17:14:24.0879 (UTC) FILETIME=[6E51B7F0:01C52E39] X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Mikael Magnusson wrote: > It seems one file is enough. I also failed to mention that zsh doesn't > crash if there are any other files in the same directory. It has to be > only ones which cause the problem I think. (not sure exactly what that > is though). > This script succeeds in creating the file for me: > > > a='+WSdYWmEb - +WSdZfTBNMF8wmTCIMAI.avi' > b="`echo $a|iconv -f utf7 -t utf8`" > touch "$b" This is good enough for me to see that somewhere the completion system is messing up the use of metafied characters: with debugging turned on, there's an error message from "ztrsub" because there's a Meta at the end of the variable. Somewhere in the undocmented morass it generates a "compprefix" without checking properly if the string contains Meta characters and truncates it incorrectly. There are lots of ways of checking compprefix. Someone is going to have to trace which it is. We had something similar before and it took a lot of tracking down. This is even before we've thought about handling multibyte characters. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************