vt: support Unicode recomposition
authorNicolas Pitre <npitre@baylibre.com>
Thu, 17 Apr 2025 18:45:11 +0000 (14:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Apr 2025 09:22:04 +0000 (11:22 +0200)
commitb5c574995d842d241d810f3a6a3ebb03c52d57fa
treeb751111fb22541156433f26a8708d5dcc0b12e5c
parent9bd73840935746dccef20dbcb509317c8e718f08
vt: support Unicode recomposition

Try replacing any decomposed Unicode sequence by the corresponding
recomposed code point. Code point to glyph correspondance works best
after recomposition, and this apply mostly to single-width code points
therefore we can't preserve them in their decomposed form anyway.

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