1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-11-01 19:05:51 +01:00

lib/charset: Map Unicode code points to CP437 code points 1-31

Code page 437 uses code points 1-31 for glyphs instead of control
characters. Map the appropriate Unicode code points to this code points.
Fixes rendering of grub2's menu as EFI application using the
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on a console with bitmap fonts.

Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
Janne Grunau
2024-03-16 22:50:20 +01:00
committed by Heinrich Schuchardt
parent 5ea38f95c4
commit ac72d17fd8
5 changed files with 28 additions and 9 deletions

View File

@@ -16,7 +16,7 @@
/*
* codepage_437 - Unicode to codepage 437 translation table
*/
extern const u16 codepage_437[128];
extern const u16 codepage_437[160];
/**
* console_read_unicode() - read Unicode code point from console