Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Disable UTF8-escaping diacritics
- X-seq: zsh-workers 52566
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Avid Seeker <avidseeker7@xxxxxxxxxxxxxx>
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: Disable UTF8-escaping diacritics
- Date: Tue, 20 Feb 2024 14:56:13 -0800
- Archived-at: <https://zsh.org/workers/52566>
- In-reply-to: <8yYj-thb4PbTZU9ba0buJrpHB_TFHVhEXrTt-aBq6Mx5drX1DSURzsso4a1MSRWdhvTkE0Fv9W90dwIPw85l1IY0-S_HgRfqVbpOgMaE_Qc=@protonmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <8yYj-thb4PbTZU9ba0buJrpHB_TFHVhEXrTt-aBq6Mx5drX1DSURzsso4a1MSRWdhvTkE0Fv9W90dwIPw85l1IY0-S_HgRfqVbpOgMaE_Qc=@protonmail.com>
On Tue, Feb 20, 2024 at 11:26 AM Avid Seeker <avidseeker7@xxxxxxxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author