Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: UNICODE Private Use Area characters in BUFFER
- X-seq: zsh-workers 50816
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Cc: Mikael Magnusson <mikachu@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: UNICODE Private Use Area characters in BUFFER
- Date: Sun, 23 Oct 2022 11:54:35 -0700
- Archived-at: <https://zsh.org/workers/50816>
- In-reply-to: <CAN=4vMohKT=CAx5XoSAHrDvx4J--58535h-ZgCn3dkSqvZKDZg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAN=4vMowyKmrQtQb=QTxiVzQJXRubz-o2T12=6aQBHSpkKwOig@mail.gmail.com> <CAHYJk3SWfX7ZaFA=WgDBtSPZD0isV5OUHWgf3ienhzhzK+9xQw@mail.gmail.com> <CAN=4vMoLQBt8ST7E3EachnLra05ENPOiY0nDOC0Z_=a=8Mg4SA@mail.gmail.com> <CAH+w=7a-8TtMcXvrmq6RLHbU-maHdD1Zf2ck_h_kzK61bmEr_A@mail.gmail.com> <CAN=4vMohKT=CAx5XoSAHrDvx4J--58535h-ZgCn3dkSqvZKDZg@mail.gmail.com>
On Sun, Oct 23, 2022 at 10:29 AM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> You are right, iswprint(0xE0B0) returns 0.
Interestingly, ${(V)...} et al. don't consult iswprint(), they just
call wcs_nicechar_sel() which only consults WCWIDTH().
Some characters like $'\u21A9' report and occupy a width of 1, but
part of the character overlaps the cell to the right when displayed.
> I think u9_iswprint() should return 1 for Private Use Area characters.
Suggest a patch to Src/wcwidth9.h ? I'm not sure whether to update
the static wcwidth9() function, or the entries in the lookup tables.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author