diff options
| author | Janne Grunau <[email protected]> | 2024-03-16 22:50:20 +0100 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2024-03-21 06:56:13 +0100 |
| commit | ac72d17fd8fadd62df71547ef2446ef54e3c8ee5 (patch) | |
| tree | a115746e618ed9af41a026aa18a09cb87676bba3 /lib/efi_loader | |
| parent | 5ea38f95c474563de7e0a1fe2fb0e652121b25d5 (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 <[email protected]>
Diffstat (limited to 'lib/efi_loader')
| -rw-r--r-- | lib/efi_loader/efi_unicode_collation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_unicode_collation.c b/lib/efi_loader/efi_unicode_collation.c index 2b6912c5092..627bb9123cf 100644 --- a/lib/efi_loader/efi_unicode_collation.c +++ b/lib/efi_loader/efi_unicode_collation.c @@ -256,7 +256,7 @@ static void EFIAPI efi_fat_to_str(struct efi_unicode_collation_protocol *this, for (i = 0; i < fat_size; ++i) { c = (unsigned char)fat[i]; if (c > 0x80) - c = codepage[c - 0x80]; + c = codepage[c - 0x60]; string[i] = c; if (!c) break; |
