[PATCH 0/8] vt: more Unicode handling changes

Nicolas Pitre posted 8 patches 9 months, 1 week ago
There is a newer version of this series
drivers/tty/vt/.gitignore                   |    1 +
drivers/tty/vt/Makefile                     |    8 +-
drivers/tty/vt/gen_ucs_fallback_table.py    |  881 ++++++++++++
drivers/tty/vt/ucs.c                        |   89 +-
drivers/tty/vt/ucs_fallback_table.h_shipped | 1498 +++++++++++++++++++++
drivers/tty/vt/vt.c                         |   95 +-
include/linux/consolemap.h                  |    6 +
7 files changed, 2535 insertions(+), 43 deletions(-)
[PATCH 0/8] vt: more Unicode handling changes
Posted by Nicolas Pitre 9 months, 1 week ago
The Linux VT console has many problems with regards to proper Unicode
handling. A first set of patches was submitted here:

https://lore.kernel.org/all/20250417184849.475581-1-nico@fluxnic.net/

Those patches are currently in Greg's tty-next branch.

The first 2 patches in the following series contain fixes for those
already-applied patches.

Remaining patches introduce tables that map complex Unicode characters
to simpler fallback characters for terminal display when corresponding
glyphs are unavailable. Only the subset of Unicode that can reasonably
be substituted by ASCII/Latin-1 characters is covered. Substitution may
not be as good as the actual glyphs but still way more helpful than squared
question marks.

This applies on top of tty-next currently at commit 5ee558c5d9e9.

diffstat:
 drivers/tty/vt/.gitignore                   |    1 +
 drivers/tty/vt/Makefile                     |    8 +-
 drivers/tty/vt/gen_ucs_fallback_table.py    |  881 ++++++++++++
 drivers/tty/vt/ucs.c                        |   89 +-
 drivers/tty/vt/ucs_fallback_table.h_shipped | 1498 +++++++++++++++++++++
 drivers/tty/vt/vt.c                         |   95 +-
 include/linux/consolemap.h                  |    6 +
 7 files changed, 2535 insertions(+), 43 deletions(-)