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

Re: Possible bug with bindkey and Unicode characters in 5.2?



On Mon, 07 Dec 2015 23:29:41 +0100
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On Mon, Dec 7, 2015 at 9:47 PM, Raymond W. Ko <raymond.w.ko@xxxxxxxxx> wrote:
> > bindkey -s θ '"\C-b"'
> > bindkey -s ω "'\C-b'"
> > bindkey -s υ ">\C-b<"
> > bindkey -s σ "}\C-b{"
> > bindkey -s φ ")\C-b("
> > bindkey -s φ "asdf"
> > bindkey -s ρ "]\C-b["
> >
> > On zsh 5.1 and 5.0.1, this works as expected. However, in 5.2 there seems to
> > be a pause for half a second before a question mark appears.
>
> e1c0a947cc845c71dd844db44016d07922cfcefa is the first bad commit
> commit e1c0a947cc845c71dd844db44016d07922cfcefa
> Author: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
> Date:   Fri Sep 11 21:40:45 2015 +0100
> 
>     Read full multibyte string early for self-insert

OK, I can reproduce this using the accented chracters.  AltGr-; e gives
me é and if I do

bindkey -s é 'foo'

then typing é has the effect reported.  I'll take a look.  It's not
specific to "-s".  I suspect it's getting the first octet and the second
is going somewhere else.  The change isn't quoted supposed to effect
non-self-insert bindings at all.

pws



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