vt: support Unicode recomposition
authorNicolas Pitre <npitre@baylibre.com>
Thu, 10 Apr 2025 01:14:00 +0000 (21:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Apr 2025 14:55:55 +0000 (16:55 +0200)
commitcd6937d42bca46f2143544918e535d6fd22b71b7
treec05e2bb7311d1235142f6fc1e9274f40e7a20131
parent54af55b990eda5a6a0140a3cded8094b42c0c3b7
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.

With all the infrastructure in place this is now trivial to do.

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