linux/drivers/tty/vt
Myrrh Periwinkle b43cb4ff85 vt: defkeymap: Map keycodes above 127 to K_HOLE
The maximum number of keycodes got bumped to 256 a very long time ago,
but the default keymaps were never adjusted to match. This is causing
the kernel to interpret keycodes above 127 as U+0000 if the shipped
generated keymap is used.

Fix this by mapping all keycodes above 127 to K_HOLE so the kernel
ignores them.

The contents of this patche were generated by rerunning `loadkeys
--mktable --unicode` and only including the changes to map keycodes
above 127 to K_HOLE.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Myrrh Periwinkle <myrrhperiwinkle@qtmlabs.xyz>
Cc: stable <stable@kernel.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250702-vt-misc-unicode-fixes-v1-2-c27e143cc2eb@qtmlabs.xyz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-22 18:53:56 +02:00
..
.gitignore vt: create ucs_fallback_table.h_shipped with gen_ucs_fallback_table.py 2025-05-21 13:39:45 +02:00
conmakehash.c tty: vt: conmakehash: remove non-portable code printing comment header 2024-08-13 11:06:29 +02:00
consolemap.c vt: remove zero-width-space handling from conv_uni_to_pc() 2025-04-26 11:22:04 +02:00
cp437.uni
defkeymap.c_shipped vt: defkeymap: Map keycodes above 127 to K_HOLE 2025-07-22 18:53:56 +02:00
defkeymap.map
gen_ucs_fallback_table.py vt: process the full-width ASCII fallback range programmatically 2025-05-21 13:39:45 +02:00
gen_ucs_recompose_table.py vt: move UCS tables to the "shipped" form 2025-04-26 11:22:04 +02:00
gen_ucs_width_table.py vt: move UCS tables to the "shipped" form 2025-04-26 11:22:04 +02:00
keyboard.c vt: keyboard: Don't process Unicode characters in K_OFF mode 2025-07-22 18:53:50 +02:00
Makefile vt: add ucs_get_fallback() 2025-05-21 13:39:45 +02:00
selection.c vt: bracketed paste support 2025-05-21 13:41:03 +02:00
ucs.c vt: fix kernel-doc warnings in ucs_get_fallback() 2025-06-19 13:27:36 +02:00
ucs_fallback_table.h_shipped vt: process the full-width ASCII fallback range programmatically 2025-05-21 13:39:45 +02:00
ucs_recompose_table.h_shipped vt: move UCS tables to the "shipped" form 2025-04-26 11:22:04 +02:00
ucs_width_table.h_shipped vt: move UCS tables to the "shipped" form 2025-04-26 11:22:04 +02:00
vc_screen.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
vt.c vt: add missing notification when switching back to text mode 2025-06-19 13:27:16 +02:00
vt_ioctl.c vt: add VT_GETCONSIZECSRPOS to retrieve console size and cursor position 2025-05-21 13:41:03 +02:00