zsh-workers
 help / color / mirror / code / Atom feed
From: Morita Sho <morita-pub-en-debian@inz.sakura.ne.jp>
To: zsh-workers@sunsite.dk, 501851@bugs.debian.org
Subject: Re: Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.
Date: Tue, 14 Oct 2008 10:46:29 +0900	[thread overview]
Message-ID: <48F3F9F5.1040009@inz.sakura.ne.jp> (raw)
In-Reply-To: <2d460de70810122325r7e576759t204653bd537006b5@mail.gmail.com>

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@inz.sakura.ne.jp>


  reply	other threads:[~2008-10-14  1:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20081010230611.23133.42221.reportbug@debian>
2008-10-10 23:17 ` Clint Adams
2008-10-11 12:09   ` Richard Hartmann
2008-10-11 13:47   ` Morita Sho
2008-10-11 21:52     ` Peter Stephenson
2008-10-13  1:32       ` Morita Sho
2008-10-13  6:25         ` Richard Hartmann
2008-10-14  1:46           ` Morita Sho [this message]
2008-10-14 12:04             ` Peter Stephenson
2008-10-15  4:34               ` Morita Sho
2008-10-18 18:48                 ` Peter Stephenson
2008-10-19  6:00                   ` Morita Sho
2008-10-13  9:30         ` Peter Stephenson
2008-10-13 12:50           ` Richard Hartmann

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=48F3F9F5.1040009@inz.sakura.ne.jp \
    --to=morita-pub-en-debian@inz.sakura.ne.jp \
    --cc=501851@bugs.debian.org \
    --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).