Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: crash in tabcompleting
- X-seq: zsh-workers 21044
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list), Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: crash in tabcompleting
- Date: Mon, 21 Mar 2005 17:12:21 +0000
- In-reply-to: <237967ef05032104425384f32b@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef05032017571464ae4f@xxxxxxxxxxxxxx> <200503211106.j2LB6mHo006379@xxxxxxxxxxxxxx> <237967ef05032104425384f32b@xxxxxxxxxxxxxx>
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 <pws@xxxxxxx> 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.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author