vt: introduce gen_ucs_width.py to create ucs_width.c
authorNicolas Pitre <npitre@baylibre.com>
Thu, 10 Apr 2025 01:13:56 +0000 (21:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Apr 2025 14:55:54 +0000 (16:55 +0200)
commit26c94eb4842ada96f9709b43ef225417a6b4df63
tree1889d5c6a706c245b6e36c0eaf2101b61f6b6995
parente88391f730e46d208b7fb37b02611d24137af1ef
vt: introduce gen_ucs_width.py to create ucs_width.c

The table in the current ucs_width.c is terribly out of date and
incomplete. We also need a second table to store zero-width code points.
Properly maintaining those tables manually is impossible. So here's a
script to automatically generate them.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Link: https://lore.kernel.org/r/20250410011839.64418-5-nico@fluxnic.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/gen_ucs_width.py [new file with mode: 0755]