aboutsummaryrefslogtreecommitdiff
path: root/include/charset.h
diff options
context:
space:
mode:
authorJanne Grunau2024-03-16 22:50:20 +0100
committerHeinrich Schuchardt2024-03-21 06:56:13 +0100
commitac72d17fd8fadd62df71547ef2446ef54e3c8ee5 (patch)
treea115746e618ed9af41a026aa18a09cb87676bba3 /include/charset.h
parent5ea38f95c474563de7e0a1fe2fb0e652121b25d5 (diff)
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>
Diffstat (limited to 'include/charset.h')
-rw-r--r--include/charset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/charset.h b/include/charset.h
index f1050c903d6..348bad5883a 100644
--- a/include/charset.h
+++ b/include/charset.h
@@ -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