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

Re: problem with multi-byte character on command line (zsh v 5.8)



Hi Roman, just to clarify, the problem happens only when the cursor appears before the character.
I tried your suggestion and there were no issues

Bart: this is the output of locale:
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=it_IT.UTF-8
LC_TIME=it_IT.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=it_IT.UTF-8
LC_NAME=it_IT.UTF-8
LC_ADDRESS=it_IT.UTF-8
LC_TELEPHONE=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION=it_IT.UTF-8
LC_ALL=

I tried with 
LC_ALL=C.UTF-8 zsh
locale
sed: -e _expression_ #1, char 18: Invalid collation character
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=C.UTF-8

the problem still appears

Pier Paolo Grassi


Il giorno gio 19 mag 2022 alle ore 11:00 Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> ha scritto:
On Wed, May 18, 2022 at 7:31 PM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
>
> Hello, I have just found than having this character on command line:
> $'\xf0\x9f\x8d\xbe' (that would be a 🍾)
> makes the cursor unable to advance when inserting characters

Can you try running `cat`, pasting 🍾 and then typing something after
it? Does this also cause cursor issues for you?

Roman.

P.S.

I cannot reproduce the issue you've described on Ubuntu 21.10 with zsh
5.8, LC_ALL=C.UTF-8 and xterm or gnome-terminal.


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