zsh-users
 help / color / mirror / code / Atom feed
From: Pier Paolo Grassi <pierpaolog@gmail.com>
To: Roman Perepelitsa <roman.perepelitsa@gmail.com>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: problem with multi-byte character on command line (zsh v 5.8)
Date: Thu, 19 May 2022 16:01:53 +0200	[thread overview]
Message-ID: <CAP+y1xC2xzn4UYAcnx6iM-o8vK=G5jHOVeLHA+5BycBL75XLpA@mail.gmail.com> (raw)
In-Reply-To: <CAN=4vMo55xEVxHCXjruv4_MzHO71K9VAbXKT-=hAeORLXNhZ2w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1669 bytes --]

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@gmail.com> ha scritto:

> On Wed, May 18, 2022 at 7:31 PM Pier Paolo Grassi <pierpaolog@gmail.com>
> 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.
>

[-- Attachment #2: Type: text/html, Size: 2600 bytes --]

  reply	other threads:[~2022-05-19 14:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-18 17:30 Pier Paolo Grassi
2022-05-18 18:54 ` Bart Schaefer
2022-05-18 19:40   ` Pier Paolo Grassi
2022-05-18 19:55     ` Bart Schaefer
2022-05-18 20:10       ` Pier Paolo Grassi
2022-05-18 20:12         ` Pier Paolo Grassi
2022-05-19  4:05           ` Bart Schaefer
2022-05-19  8:59 ` Roman Perepelitsa
2022-05-19 14:01   ` Pier Paolo Grassi [this message]
2022-05-19 14:11     ` Roman Perepelitsa
2022-05-19 14:12       ` Pier Paolo Grassi
2022-05-19 14:23       ` Ray Andrews
2022-05-19 14:26         ` Roman Perepelitsa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP+y1xC2xzn4UYAcnx6iM-o8vK=G5jHOVeLHA+5BycBL75XLpA@mail.gmail.com' \
    --to=pierpaolog@gmail.com \
    --cc=roman.perepelitsa@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).