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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29210 invoked from network); 18 May 2022 20:11:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 May 2022 20:11:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1652904695; b=YekR0oYVgfZTjMUXQsD3R/3Nqy612WbkpdlfvFy3jsrYNc6ixPU2/7cnnVuaVW7j8FDE7wEp2j ec7VeyX9DelSN162tMnNTNRzEpMwALrvqkNEHkH7pAbZD+9ZKlDJOTneXRG1wX/6qYTeYhsyAI o53pNp6ngeYh/Cf7BHY5z++60Se8x24sR8pMOil9e60oKcgH51GdVcVkghbFg2exkA0Fu+K584 zHVCJey3tF2dMUT+klxfKjcu7UJzpTS/0U3THiIOooRa4t58TcZZoVJXkhSHsCiKyeYZEZ3nTl UhjEAOLVXkZiQ4rr8GjVzFNJlCANdh/EZv5LzIdnRzgGiA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f41.google.com) smtp.remote-ip=209.85.166.41; 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=1652904695; bh=ZABuTVD6kqi8+zR3rGYo2NKWrI10L+8A8doCOUE6Ytk=; 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=gu5XRg3IHOjFQb7xNcKvjzx2EvQf6fAtp0J1BZ2e6a23zOS1mhhs5w1odaIFCqfCmVlRKs/c2Q RLHSLwMYO3kv8ML/GECNBIDNqYVjRA+ySNugwtd7GFt3XyBU6UP/igttziljwBRdWihRUbryM4 li9v1TBbLwRqkBk8ugk0IbBm4fWGpGUxoWCUEpzEJk8ZeCAWILIjLSCdGGUx5d5e2MFuPFdjui YALS5Jvz1NEQitNgcgmLn2RoLldrEjfuTzd0IyZCr7gNHi5ZWGr374HRnQ4gYzjlyuI7VhMXRI 2gZVUqDOgeT1bbGUE0McFx1VeLEPbKBW9PuaoS3EVk4+7g==; 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=aCG0o1wjlaay4Jclvy7cDnGq7o+hdpTh5K8e+87+qwE=; b=TWKeLq8N0jdlvNMEmV0ZwRukbH h2pB070LZX1rKv/0Bh8PV5NV6b+L7WFHP2nHJIjh18afJpAjgFyQNtyZT/yoKPL7/CrIIuCgxNjug uyfJ0Myj4eZXQgaduYa63sHJsItxxAqMiVEbxnjT9Lr6pCs3ILmYrms1CVYg1Ll9wVF5qAwHdn0Hx 07F3VDuom/6aVfeFnrlV4Ajotx1+Twr4HwFhT9bVtC70eyQva+nxtQXelQoZaE00yRKslef3xwiGD NQ5maULSEvj54vCdxB5auoaaI9RjYIE1smU5gxCkSyFVrd9l0tAcQ1oPU4bTWZY+c2qF5RNhXkcI7 MsSdEa5g==; Received: from authenticated user by zero.zsh.org with local id 1nrQ19-000MtB-7v; Wed, 18 May 2022 20:11:35 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f41.google.com) smtp.remote-ip=209.85.166.41; 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-f41.google.com ([209.85.166.41]:43572) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nrQ0g-000MC8-Q0; Wed, 18 May 2022 20:11:07 +0000 Received: by mail-io1-f41.google.com with SMTP id o190so3515694iof.10 for ; Wed, 18 May 2022 13:11:06 -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=aCG0o1wjlaay4Jclvy7cDnGq7o+hdpTh5K8e+87+qwE=; b=C9cTnNYMnlArhu7Kw5qhJkp5K8eil3bMWNu6UFOMI3MTPhC3q9FEJKBsE/Adm8IIn/ 5lBFd1pcuUV6C6oQDERRS6Qek0us9qTpDpHwi3XDZSzTzLt8wfoEXiIGhZW6+U/+V9Hv WMpJlRKehPjHFAIdb7IHhtvAcLFpl7jzOZlfgXo5OG8GlJ9e/6j8fDOQOYxpFW2dcoRu ZyBPAl8VtjpUkFHS3CqQ5o8GygIpFT6I2s60B98YJOiqiuymv6oMmbUD8f7PV8VL9NLt QFCQ6krGTiI2rX1iWNnkdkwf4fbmXyQG/N8UVzqsWYrkJfcPXMnbxoJk1zebK5ix8buZ YnRA== 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=aCG0o1wjlaay4Jclvy7cDnGq7o+hdpTh5K8e+87+qwE=; b=GUz3m3PjK5b0bbmmSWoe/2+MOToqO5BkumN+apyqFpESans53wbYeJ7ZNGMZJ4uO/V OeLdcVn9S/09g7gPkRcpEu0flNmaPw3xxxbeCynE7oi3x5xr6oinF3kG+8tx7acZk3B4 G0XxGjMeyUN3QgyrMbFEJBjgCdzca3AZOrWBknrg3rrIlSVR2cnRZx7nPBjqibA9vBSv S2oICmm1RMIrfX92izkEPPV8csBFCkuVBJphBJhJJv31PqwyCchu46LdjfCHB9rxFPYb +15yl6KZb2Ey2vbgyFr4FDjXUF0beI60Dm3+IcJGEezaDsvVBo26MOB79muVpWSdQSYr AzBA== X-Gm-Message-State: AOAM530zJQuBHrQmqUNIoSSit7bBXHfzN49vnUJ9nVD6ZOOq22xJNdQe AkfZwEaxyyAyPBZgb7Rc3pVC/j7wKlv28C5OyQIffGPuEfM= X-Google-Smtp-Source: ABdhPJx61P1HrcUm4WfoF6Y5w39vUpaq3ENzK8JgI9hRGyb06DZJ6F7rZsHXzaVWPUgP8wsYok58TXgsNxLOFS31ZLo= X-Received: by 2002:a05:6638:1343:b0:32b:de4f:686e with SMTP id u3-20020a056638134300b0032bde4f686emr704914jad.72.1652904665589; Wed, 18 May 2022 13:11:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Wed, 18 May 2022 22:10:29 +0200 Message-ID: Subject: Re: problem with multi-byte character on command line (zsh v 5.8) To: Bart Schaefer Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="00000000000070afab05df4edb5f" X-Seq: 27764 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: --00000000000070afab05df4edb5f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Just tried an ubuntu 18.04 with zsh 5.4.2 (x86_64-ubuntu-linux-gnu) and I am able to reproduce. I tried also with gnome-terminal, same result. I have tried en_US.utf8 and it_IT.utf8, can you share yours? thanks Pier Paolo Grassi Il giorno mer 18 mag 2022 alle ore 21:55 Bart Schaefer < schaefer@brasslantern.com> ha scritto: > On Wed, May 18, 2022 at 12:40 PM Pier Paolo Grassi > wrote: > > > > I use zsh 5.8 (x86_64-pc-linux-musl) > > Ahh. I wonder if this is a side-effect of musl's "special" C locale > (see workers/50235): > > >> Starting with version 1.1.11, musl provides a special C locale where > bytes > >> 0x80-0xff are treated as abstract single-byte-character units with no > actual > >> character identity (they=E2=80=99re mapped into wchar_t values that oc= cupy the > >> Unicode surrogates range). > > > By the way the problem happens only when the cursor is placed before th= e > 4-bytes character. > > Still not reproducible on Ubuntu 20. > --00000000000070afab05df4edb5f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Just tried an ubuntu 18.04 with zsh 5.4.2 (x86_64-ubuntu-l= inux-gnu)
and I am able to reproduce.
I tried also with g= nome-terminal,=C2=A0same result.
I have tried en_US.utf8 and it_I= T.utf8, can you share yours?
thanks


Pier Paolo Grassi

Il giorno mer 18 mag 2022 alle ore 21:55 Bart Schaefer <schaefer@brasslantern.com> ha = scritto:
On Wed,= May 18, 2022 at 12:40 PM Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
>
> I use zsh 5.8 (x86_64-pc-linux-musl)

Ahh.=C2=A0 I wonder if this is a side-effect of musl's "special&qu= ot; C locale
(see workers/50235):

>> Starting with version 1.1.11, musl provides a special C locale whe= re bytes
>> 0x80-0xff are treated as abstract single-byte-character units with= no actual
>> character identity (they=E2=80=99re mapped into wchar_t values tha= t occupy the
>> Unicode surrogates range).

> By the way the problem happens only when the cursor is placed before t= he 4-bytes character.

Still not reproducible on Ubuntu 20.
--00000000000070afab05df4edb5f--