Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-18 Thread Peter Stephenson
On Wed, 15 Oct 2008 13:34:47 +0900 Morita Sho <[EMAIL PROTECTED]> wrote: > Thanks for detailed explanation! But I'm still confusing. Even with the old > syntax, the completion Ą/[TAB] won't work. You're right. My explanation wasn't correct; it doesn't matter if you use the m:{[lower]}={[upper]} s

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-18 Thread Morita Sho
On 10/19/2008 03:48 AM, Peter Stephenson wrote: > Thanks, this tells me that the compfiles utility isn't handling Meta > characters properly when performing matching. Luckily this seems to be > a local problem within that command that I think the patch addresses. I can confirm that the completion

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-10 Thread Morita Sho
Package: zsh Version: 4.3.6-7 Severity: normal Hi, Completion fails if a directory name contains '(', ')' and 'Ą '. 'Ą ' is U+0104 in unicode. Following is a small example to reproduce the problem. % mkdir '()Ą' % touch '()Ą'/foo % ls '()Ą'/[TAB] => I expected it completes "foo", but

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-10 Thread Clint Adams
On Sat, Oct 11, 2008 at 08:06:11AM +0900, Morita Sho wrote: > Completion fails if a directory name contains '(', ')' and 'Ą '. > 'Ą ' is U+0104 in unicode. > > Following is a small example to reproduce the problem. > > % mkdir '()Ą' > % touch '()Ą'/foo > % ls '()Ą'/[TAB] > => I expected

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-11 Thread Richard Hartmann
On Sat, Oct 11, 2008 at 01:17, Clint Adams <[EMAIL PROTECTED]> wrote: >> => I expected it completes "foo", but it completes nothing. Confirmed for 4.3.6 on Debian unstable. Richard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PRO

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-11 Thread Morita Sho
Thanks for your quick reply. I found that the difference between '()Ą'/[TAB] and '()Ā'/[TAB] is at line 372 of /usr/share/zsh/functions/Completion/Unix/_path_files. tmp1=( $~tmp1 ) 2> /dev/null When I typed '()Ą'/[TAB], tmp1 will be '\(\)Ą/*', and $~tmp1 is expanded to nothing. When I typed

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-11 Thread Peter Stephenson
On Sat, 11 Oct 2008 22:47:52 +0900 Morita Sho <[EMAIL PROTECTED]> wrote: > $~tmp1 expansion seems not working correctly for a pattern '\(\)Ą/*'. Thanks for the clear analysis. The pattern gets divided up into chunks because of the backslashed characters, but we don't report that it wasn't a pure

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-12 Thread Morita Sho
On 10/12/2008 06:52 AM, Peter Stephenson wrote: > The pattern gets divided up into chunks because of the backslashed > characters, but we don't report that it wasn't a pure string on that > basis, so the directory trise to match the wrong string. This was triggered > in this case because of the ch

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-12 Thread Richard Hartmann
On Mon, Oct 13, 2008 at 03:32, Morita Sho <[EMAIL PROTECTED]> wrote: > Replacing _path_files with previous one (zsh 4.3.6) seems to solve the > problem. > I'm not sure, but it might be a regression in _path_files. Just to be sure, you are talking about the second part here, not both ones, correc

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-13 Thread Richard Hartmann
On Mon, Oct 13, 2008 at 11:30, Peter Stephenson <[EMAIL PROTECTED]> wrote: > Please send the output from running "^X?" if there no obvious difference. Whoah, neat! I 'fear' I will never stop being amazed at what the ZSH devs think of.. :) Richard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-13 Thread Peter Stephenson
On Mon, 13 Oct 2008 10:32:05 +0900 Morita Sho <[EMAIL PROTECTED]> wrote: > Additionally, Ą/[TAB] completion doesn't work on cvs head. (It was working on > zsh 4.3.6) > > % mkdir Ą > % touch Ą/foo > % ls Ą/[TAB] >=> Nothing completes. This works fine for me (as does the version with "()"

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-13 Thread Morita Sho
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

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-14 Thread Peter Stephenson
On Tue, 14 Oct 2008 10:46:29 +0900 Morita Sho <[EMAIL PROTECTED]> wrote: > zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}' > > After removing the above line, the completion Ą/[TAB] works again. Thanks for narrowing it down... I'm aware that that syntax still needs some work on

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-14 Thread Morita Sho
On 10/14/2008 09:04 PM, Peter Stephenson wrote: > Until then you should be able to get away with the old syntax, > > zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' > > since before I finish the job it won't actually handle non-ASCII character > conversions properly anyway. Thanks for detailed