From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3221 invoked from network); 19 May 2022 14:03:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 May 2022 14:03:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1652969021; b=bP40m0siTb4pWBxIJWUx3EfSB2SdtKsNBRBMEpuhbvIg/tlIkqRYiCBR5o2T4YKuHiE86UZJ7u GKXEQulwS1Xd5wLhYS44tS+SsRU43lDlurMnDDspKdvOY7dW17JaIItb3PYBmxeJRuiCYs0DhN LpPpWJLj5aw5zgh2Ssx4y1R3/WGG9n5pw83VM2p0WaaH8zjENfRToRgGbGAzxj2mkuq5XkqVmA ZKUnDhrEA2ICWnFk+3odTw5p4Fb+PONFVWGt36I4lcEfqSyd1g2cZay4F7/4aycBOpqompW9DG 6JvhcIsUzWEXxuGICacdM8Iy+iZMHMOIvs0ehUvOMUE2nA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f51.google.com) smtp.remote-ip=209.85.166.51; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1652969021; bh=EIxzNh6h8NM5A56Mc7TZyULjJLxlFR97bn1zraTePLE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=cRabKrcKO4Z1+pT1uubCBX3RHl6EZIl4iKVCV31Bp0iTZJwHtq7JziWe/k57JruB9PIy1SZhbn LNC8qw5AkudC+hYZ2YA7ApRtZaOMztzrUdyq7Yr/4CZTM6WzWj86pAABgSmtLWg83NE0t3oCxQ WMeyabWWj0arCpAaQlgMVLBNUqySWXQo9T7B+LODhbD4xtfOV6v8kICY4TlyLGs+YlJuiQgJZH vqMJHp1RdVZ10Nd02t5OH+ZEwbPllwWmzMFsthPB3FDC+apl/k0hoSDlsAqa29zq88/zEBtQPb GwnK7Fnj4wA1bbv7pfntRv90D1FUByd2ecip2W5MSuew7w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=EIxzNh6h8NM5A56Mc7TZyULjJLxlFR97bn1zraTePLE=; b=BaNZjhv5jm9WhFzdk0RsCJGVna j1hxcBlZKEi094lXMl/Y00HLBOF+yT8B9Tl1YOVOEsgW2kR7lYP4z0fH1r83sH5djQ7gxsLctkh+2 stcBY2d4KJXwo9a1yay7PMdyyV39zmtiTdtYtA45lWiftELG4/ixmjeZGeUsBQPOyJcUNbP3LBJKa CFmkYyk7OryeK33vCr42AhN/Gm64XsD9uFFguA69Ie/j4ctQcCO8tstbPxN5e5FSMNP3hodxnYe3k lCXNht4VovhlqFip5ts8C/zGZ3kwDnGF9z03EsTF3Q1Z8witJFDHKGo6e1DeeawxH96N/W26d58Vp L9HU2sXw==; Received: from authenticated user by zero.zsh.org with local id 1nrgkc-0005or-WF; Thu, 19 May 2022 14:03:39 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f51.google.com) smtp.remote-ip=209.85.166.51; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f51.google.com ([209.85.166.51]:46741) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nrgjX-00057W-Id; Thu, 19 May 2022 14:02:32 +0000 Received: by mail-io1-f51.google.com with SMTP id s23so5809686iog.13 for ; Thu, 19 May 2022 07:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EIxzNh6h8NM5A56Mc7TZyULjJLxlFR97bn1zraTePLE=; b=Cr2SM/2E7WKKOGjYdGbMwo8sMalzWXJiSZMlJvdRcw29fQtpRT9jRncTeAG2Nxg9L2 fDJYd/1Z2TsM0f/Qa6RpGLickAXNXNEfTfPHz2OkB8sxjc0COIhdq1Xo0YmkCMDCCZiJ 5ooZmvDRYLteMk0GwImaO3ang3CiFnHldBb4VLJErULCSK0tl6AHi2Pisg59l4FgvpLH p2BEZq32PiZwKtlZSA77MX8+iUDoMokR9s4x9K37EoYC41xhXW/15txvVONVQbUYPBxj 8TSpRy8UourHfxkXEZ/dZQrFMFo4Ncqgl4bpAk0J5g5Bw6jQOlE/gix0yjUulp/aHWIU 7gLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EIxzNh6h8NM5A56Mc7TZyULjJLxlFR97bn1zraTePLE=; b=DvOPE10tdy/bcOnJkK+QkfCHWhapTZkOQx6vCi6yDZ8TQxbZKdxPjyckXRZhwe4l++ Ty2Q09ON3yheYzZNbcaYHYMyPQZOvK2vyHvtEGpLTwuva+B/9ZyRZvACqjZkG1N77uvF uub3tDpRPOcv9FN18+UrnpvPsn5X4MtCEcmfrZ4WZZuuJUFJE2QUDO96Ll1tZ2QsKTR4 0UaE1WW+29A9RDEGuAj8wxCKTi63xyGJwMipL6zZLGVfpyyO5NSadqVi2KJVq4aXZ/4K NsPKseSWbAa2P/CvNBeY92GIonPQS/iFphmWbrggX6hVPBbTIR6jMu67asbj4lLSG0Ce /mjQ== X-Gm-Message-State: AOAM531QsE+6sdFDmhKM9RByYo66jzlAgBthHstL/hnY4lF/BMVpmep9 26e4x6v6g7Q6YRhZxX1L+hcRtRdjuwtVJODmPt8= X-Google-Smtp-Source: ABdhPJxKLoR/Rx8AWkVYLNYkLJrHYrv9gBbxaPGR3DtbmhYCSNhQq6NnA0UXdazG6f9fa2A9TUIf/XoHgtQlVriCKu0= X-Received: by 2002:a05:6638:1343:b0:32b:de4f:686e with SMTP id u3-20020a056638134300b0032bde4f686emr2779999jad.72.1652968949893; Thu, 19 May 2022 07:02:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Thu, 19 May 2022 16:01:53 +0200 Message-ID: Subject: Re: problem with multi-byte character on command line (zsh v 5.8) To: Roman Perepelitsa Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000154e4805df5dd34e" X-Seq: 27769 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --000000000000154e4805df5dd34e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3Den_US.UTF-8 LANGUAGE=3D LC_CTYPE=3D"en_US.UTF-8" LC_NUMERIC=3Dit_IT.UTF-8 LC_TIME=3Dit_IT.UTF-8 LC_COLLATE=3D"en_US.UTF-8" LC_MONETARY=3Dit_IT.UTF-8 LC_MESSAGES=3D"en_US.UTF-8" LC_PAPER=3Dit_IT.UTF-8 LC_NAME=3Dit_IT.UTF-8 LC_ADDRESS=3Dit_IT.UTF-8 LC_TELEPHONE=3Dit_IT.UTF-8 LC_MEASUREMENT=3Dit_IT.UTF-8 LC_IDENTIFICATION=3Dit_IT.UTF-8 LC_ALL=3D I tried with LC_ALL=3DC.UTF-8 zsh locale sed: -e expression #1, char 18: Invalid collation character LANG=3Den_US.UTF-8 LANGUAGE=3D LC_CTYPE=3D"C.UTF-8" LC_NUMERIC=3D"C.UTF-8" LC_TIME=3D"C.UTF-8" LC_COLLATE=3D"C.UTF-8" LC_MONETARY=3D"C.UTF-8" LC_MESSAGES=3D"C.UTF-8" LC_PAPER=3D"C.UTF-8" LC_NAME=3D"C.UTF-8" LC_ADDRESS=3D"C.UTF-8" LC_TELEPHONE=3D"C.UTF-8" LC_MEASUREMENT=3D"C.UTF-8" LC_IDENTIFICATION=3D"C.UTF-8" LC_ALL=3DC.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 > wrote: > > > > Hello, I have just found than having this character on command line: > > $'\xf0\x9f\x8d\xbe' (that would be a =F0=9F=8D=BE) > > makes the cursor unable to advance when inserting characters > > Can you try running `cat`, pasting =F0=9F=8D=BE 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=3DC.UTF-8 and xterm or gnome-terminal. > --000000000000154e4805df5dd34e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Roman, just to clarify, the problem happens only when t= he cursor appears before the character.
I tried your suggestion and the= re were no issues

Bart: this is the output of loca= le:
LANG=3Den_US.UTF-8
LANGUAGE=3D
LC_CTYPE=3D"en_US.U= TF-8"
LC_NUMERIC=3Dit_IT.UTF-8
LC_TIME=3Dit_IT.UTF-8
LC_COLLA= TE=3D"en_US.UTF-8"
LC_MONETARY=3Dit_IT.UTF-8
LC_MESSAGES=3D= "en_US.UTF-8"
LC_PAPER=3Dit_IT.UTF-8
LC_NAME=3Dit_IT.UTF-8<= br>LC_ADDRESS=3Dit_IT.UTF-8
LC_TELEPHONE=3Dit_IT.UTF-8
LC_MEASUREMENT= =3Dit_IT.UTF-8
LC_IDENTIFICATION=3Dit_IT.UTF-8
LC_ALL=3D

I tried with=C2=A0
LC_ALL=3DC.UTF-8 zsh
locale
sed: -e expression #1, char 18: Invalid collation character
= LANG=3Den_US.UTF-8
LANGUAGE=3D
LC_CTYPE=3D"C.UTF-8"
LC_N= UMERIC=3D"C.UTF-8"
LC_TIME=3D"C.UTF-8"
LC_COLLATE= =3D"C.UTF-8"
LC_MONETARY=3D"C.UTF-8"
LC_MESSAGES= =3D"C.UTF-8"
LC_PAPER=3D"C.UTF-8"
LC_NAME=3D"= ;C.UTF-8"
LC_ADDRESS=3D"C.UTF-8"
LC_TELEPHONE=3D"= C.UTF-8"
LC_MEASUREMENT=3D"C.UTF-8"
LC_IDENTIFICATION= =3D"C.UTF-8"
LC_ALL=3DC.UTF-8

the= problem still appears

Pier Paolo G= rassi


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 =F0=9F=8D=BE)
> makes the cursor unable to advance when inserting characters

Can you try running `cat`, pasting =F0=9F=8D=BE and then typing something a= fter
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<= br> 5.8, LC_ALL=3DC.UTF-8 and xterm or gnome-terminal.
--000000000000154e4805df5dd34e--