zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk (Zsh hackers list),
	Mikael Magnusson <mikachu@gmail.com>
Subject: Re: crash in tabcompleting
Date: Mon, 21 Mar 2005 17:12:21 +0000	[thread overview]
Message-ID: <200503211712.j2LHCMjW015774@news01.csr.com> (raw)
In-Reply-To: <237967ef05032104425384f32b@mail.gmail.com>

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@csr.com>                  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.

**********************************************************************


  parent reply	other threads:[~2005-03-21 17:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-21  1:57 Mikael Magnusson
2005-03-21 11:06 ` Peter Stephenson
     [not found]   ` <237967ef05032104425384f32b@mail.gmail.com>
2005-03-21 17:12     ` Peter Stephenson [this message]
2005-03-21 18:42       ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200503211712.j2LHCMjW015774@news01.csr.com \
    --to=pws@csr.com \
    --cc=mikachu@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).