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

Re: PATCH: read full multibyte string a bit more sooner



On Sat, Sep 12, 2015 at 1:07 PM, Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
> Certainly sounds like it thinks you're in some 16-bit locale.

That doesn't explain why there's a sensible result with self-insert
instead of with read-command.

I think I've got this narrowed down now; this reproduces it:

burner% zfoo() { zle -U 'Ą Пётр Ильич Чайковский 梶浦由記' }
burner% zle -N zfoo
burner% ă<ffffffff> Ѓ<ffffffff>у<ffffffff>тр
Ѓ<ffffffff>лу<ffffffff>иу<ffffffff> Чайковский
梶浦烴<ffffffff>訃<ffffffff>

(esc-x zfoo ret after the zle -N)

So it's specific to reading bytes out of (or putting them into) the kungetbuf.



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