Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: crash with multibyte and matcher-list



2008/11/2 Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>:
> On Sat, 1 Nov 2008 18:53:52 +0100
> "Mikael Magnusson" <mikachu@xxxxxxxxx> wrote:
>> GNU gdb 6.8
>> This GDB was configured as "i686-pc-linux-gnu"...
>> (gdb) run
>> Starting program: /usr/local/bin/zsh -f
>> % autoload compinit;compinit
>> % zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
>> +'r:|[._-]=* r:|=*' +'l:|=* r:|=*'
>> % touch $'\u51fa'{a,b}
>> % ls <tab>å<tab>
>> Program received signal SIGSEGV, Segmentation fault.
>
> This is going to be a complete hotch-potch until I take a week out of my
> life to convert the whole thing to do multibyte character properly, but
> the following ought to be safer and more future-proof.  The characters
> stored in the matcher are not handled as multibyte characters, so this
> is not likely to handle completion for multibyte characters any better
> yet.

Thanks, this fixes it for me too (ie with my full .zshrc, in case that
could have caused some additional problems).

btw, i noticed $ZSH_VERSION is 4.3.9 in cvs, ie not -dev-0.

-- 
Mikael Magnusson


Messages sorted by: Reverse Date, Date, Thread, Author