Re: [PATCH v2 10/13] vt: pad double-width code points with a zero-width space

From: Jiri Slaby
Date: Wed Apr 16 2025 - 01:07:44 EST


On 15. 04. 25, 21:17, Nicolas Pitre wrote:
From: Nicolas Pitre <npitre@xxxxxxxxxxxx>

In the Unicode screen buffer, we follow double-width code points with a
space to maintain proper column alignment. This, however, creates
semantic problems when e.g. using cut and paste.

Let's use a better code point for the column padding's purpose i.e. a
zero-width space rather than a full space. This way the combination
remains with a width of 2.

Signed-off-by: Nicolas Pitre <npitre@xxxxxxxxxxxx>

Reviewed-by: Jiri Slaby <jirislaby@xxxxxxxxxx>


--
js
suse labs