Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ä '.
- X-seq: zsh-workers 25885
- From: Morita Sho <morita-pub-en-debian@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx, 501851@xxxxxxxxxxxxxxx
- Subject: Re: Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ä '.
- Date: Tue, 14 Oct 2008 10:46:29 +0900
- In-reply-to: <2d460de70810122325r7e576759t204653bd537006b5@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20081010230611.23133.42221.reportbug@debian> <20081010231712.GA20915@xxxxxxxx> <48F0AE88.1020307@xxxxxxxxxxxxxxxx> <20081011225255.0df2e350@pws-pc> <48F2A515.1030203@xxxxxxxxxxxxxxxx> <2d460de70810122325r7e576759t204653bd537006b5@xxxxxxxxxxxxxx>
On 10/13/2008 03:25 PM, Richard Hartmann wrote:
> Just to be sure, you are talking about the second part here, not both ones,
> correct?
Sorry for ambiguous. I'm talking about both ones. Replacing _path_files solves
both '()Ä'/[TAB] and Ä/[TAB] problems.
On 10/13/2008 06:30 PM, Peter Stephenson wrote:
> This works fine for me (as does the version with "()" after the previous
> fix). Does the same still happen after "zsh -f; autoload -U compinit;
> compinit"? Is the character the composed version, i.e. Unicode 0x0104,
> which is 0xc4 0x84 in UTF-8, or could it be some decomposed version with
> combining characters?
>
> Please send the output from running "^X?" if there no obvious difference.
Thanks! The problem gone after "zsh -f; autoload -U compinit; compinit".
The directory 'Ä' is exactly 0xc4 0x84.
% ls
Ä
% ls | hexdump -C
00000000 c4 84 0a |...|
I removed and reconstructed ~/.zshrc to find out what settings in my ~/.zshrc
break the completion.
The completion Ä/[TAB] works fine with the following .zshrc.
% cat ~/.zshrc
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/qw/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
However, if I run `compinstall` and enable "Case-insensitive completion
(lowercase matches uppercase)" from "2. Matching control" menu, the completion
Ä/[TAB] stop to working.
I see the following line were added to ~/.zshrc.
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}'
After removing the above line, the completion Ä/[TAB] works again.
--
Morita Sho <morita-pub-en-debian@xxxxxxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author