]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vt: pad double-width code points with a zero-width space
authorNicolas Pitre <npitre@baylibre.com>
Thu, 17 Apr 2025 18:45:12 +0000 (14:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Apr 2025 09:22:04 +0000 (11:22 +0200)
commit5617aeb14a4381e4ee61778c91ed90a615275f39
tree370d391654b1311094daf34c18d887353ef3acc0
parentb5c574995d842d241d810f3a6a3ebb03c52d57fa
vt: pad double-width code points with a zero-width space

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
retains a width of 2.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250417184849.475581-11-nico@fluxnic.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c