]> git.baikalelectronics.ru Git - uboot.git/commit
bootmenu: use utf-8 for menu title
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Sun, 29 May 2022 01:52:43 +0000 (10:52 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 31 May 2022 05:57:02 +0000 (07:57 +0200)
commit2c493996338e2699f319d88996c81692a0543622
tree1dcb95f0c4f5c3428375e0a50999f2c462b71888
parent2046fc17b61f01caeb6f4a6dfa015cfa780fa031
bootmenu: use utf-8 for menu title

The commit 6cdd9c07a6c1 ("bootmenu: update bootmenu_entry structure")
changes the bootmenu title type from char to u16(UTF16 string)
to support EFI based system. If EFI_LOADER is not enabled,
printf("%ls") is not supported, so bootmenu does not appear
correctly.

This commit changes the type of menu title from u16(UTF16) to
utf-8 string and EFI strings is conveted into utf-8.

Fixes: 6cdd9c07a6c1 ("bootmenu: update bootmenu_entry structure")
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Tested-by: Pali Rohar <pali@kernel.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
cmd/bootmenu.c