vt: pad double-width code points with a zero-white-space
authorNicolas Pitre <npitre@baylibre.com>
Thu, 10 Apr 2025 01:14:03 +0000 (21:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Apr 2025 14:55:55 +0000 (16:55 +0200)
commit547f57b88d5f2ad4e9ab5e0d63a668467c10c736
tree8a4673ce9f660679b0b204d8facd5faa8075c374
parentc7cb5b0779d782c1bda10414af7a9fcadcc87e93
vt: pad double-width code points with a zero-white-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 or selection.

Let's use a better code point for the column padding's purpose i.e. a
zero-white-space rather than a full space.

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