zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Avid Seeker <avidseeker7@protonmail.com>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Disable UTF8-escaping diacritics
Date: Tue, 20 Feb 2024 14:56:13 -0800	[thread overview]
Message-ID: <CAH+w=7Y7izuVvTndXF_8BK9KuYpQ26jkvLUogTwwowcTnoKyOw@mail.gmail.com> (raw)
In-Reply-To: <8yYj-thb4PbTZU9ba0buJrpHB_TFHVhEXrTt-aBq6Mx5drX1DSURzsso4a1MSRWdhvTkE0Fv9W90dwIPw85l1IY0-S_HgRfqVbpOgMaE_Qc=@protonmail.com>

On Tue, Feb 20, 2024 at 11:26 AM Avid Seeker <avidseeker7@protonmail.com> wrote:
>
> Currently, it is not possible to input Arabic Diacritics in a zsh prompt.

Just to clarify, this means entering diacritics as part of a command
line, rather than including them in e.g. the PS1 string.

> $ echo الس<0651><064e>لام<064f>

I can reproduce this in the stock zsh 5.7.1 on MacOS Catalina, but
cannot reproduce it with a rebuilt 5.7.1 or later using the current
Xcode tools.

The more recent builds do not get this entirely right -- the cursor
placement is messed up, which leads me to believe that e.g. wcwidth()
is returning wrong values for the Arabic glyphs -- but there is no
conversion of the diacritics to hexadecimal.

Unfortunately there's not much zsh can do about this without help from
libraries that describe the characters being used.  Do you have the
appropriate Arabic locale installed?

https://help.gooddata.com/cloudconnect/manual/locale.html

Is your LANG environment etc. set to the correct value from that list?
 I don't currently have any ar_* locales available with which to test,
which may be the reason for the cursor placement problems I observe.

You might try using "zmodload zsh/langinfo" to investigate further.


  reply	other threads:[~2024-02-20 22:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-20 19:25 Avid Seeker
2024-02-20 22:56 ` Bart Schaefer [this message]
2024-02-21  0:16 ` Mikael Magnusson

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='CAH+w=7Y7izuVvTndXF_8BK9KuYpQ26jkvLUogTwwowcTnoKyOw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=avidseeker7@protonmail.com \
    --cc=zsh-workers@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).