]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: console: Parse UTF-8 character sequences
authorJanne Grunau <j@jannau.net>
Sat, 16 Mar 2024 21:50:19 +0000 (22:50 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 21 Mar 2024 05:56:13 +0000 (06:56 +0100)
commit5ea38f95c474563de7e0a1fe2fb0e652121b25d5
tree865e115f0b2244c5d8f31feadbec16f00d556c0a
parent7046bfe79e0ac34636fe8ada5f356a947f07740a
video: console: Parse UTF-8 character sequences

efi_console / UEFI applications (grub2, sd-boot, ...) pass UTF-8
character sequences to vidconsole which results in wrong glyphs for code
points outside of ASCII. The truetype console expects Unicode code
points and bitmap font based consoles expect code page 437 code points.
To support both convert UTF-8 to UTF-32 and pass Unicode code points in
vidconsole_ops.putc_xy(). These can be used directly in console_truetype
and after conversion to code page 437 in console_{normal,rotate}.

This fixes rendering of international, symbol and box drawing characters
used by UEFI applications.

Signed-off-by: Janne Grunau <j@jannau.net>
drivers/video/console_normal.c
drivers/video/console_rotate.c
drivers/video/console_truetype.c
drivers/video/vidconsole-uclass.c
drivers/video/vidconsole_internal.h
include/video_console.h