Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Weird file names
- X-seq: zsh-workers 18926
- From: Peter Stephenson <pws@xxxxxxx>
- To: David Gómez <david@xxxxxxxxxxxx>, Zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Weird file names
- Date: Mon, 04 Aug 2003 12:16:21 +0100
- In-reply-to: "David Gómez"'s message of "Tue, 29 Jul 2003 14:43:05 +0200." <20030729124305.GA1286@fargo>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
David =?iso-8859-15?Q?G=F3mez?= wrote:
> I've found a strange behavior when using non-ascii characters in a file
> name with zsh. I created a file with characters extracted from a utf8-encoded
> file as a name (the file is attached with this mail).
Does this patch (to the zsh/complist module) fix it? If not, could you
please tell us *exactly* what completion setup you have? (I can't
reproduce this with just basic completion.)
If it does fix it, please don't ask me why. (I'll delete the pws's if I
commit it, it's just to remind me I don't know what's going on.)
Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.56
diff -u -r1.56 complist.c
--- Src/Zle/complist.c 14 May 2003 10:16:07 -0000 1.56
+++ Src/Zle/complist.c 4 Aug 2003 11:07:28 -0000
@@ -2801,7 +2801,9 @@
acc = 1;
break;
}
+ metafy_line(); /* pws */
do_single(**p);
+ unmetafy_line(); /* pws */
mselect = (**p)->gnum;
}
if (u)
@@ -2817,7 +2819,9 @@
clearlist = listshown = 1;
if (acc && validlist && minfo.cur) {
menucmp = lastambig = hasoldlist = 0;
+ metafy_line(); /* pws */
do_single(*(minfo.cur));
+ unmetafy_line(); /* pws */
}
if (wasnext || broken) {
menucmp = 2;
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author