]> git.dujemihanovic.xyz Git - u-boot.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)
commite85727ddb68b3b23382ea2d78d857ffa870bb0b7
tree1dcb95f0c4f5c3428375e0a50999f2c462b71888
parent2ee9550a7d230c6711d2f263c75c7f3262ff7958
bootmenu: use utf-8 for menu title

The commit a3d0aa87acbe ("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: a3d0aa87acbe ("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