[PATCH RFC 4/6] efi_selftest: Add international characters test

Janne Grunau j at jannau.net
Sat Feb 10 12:46:53 CET 2024


Hej,

On Thu, Jan 18, 2024, at 19:48, Heinrich Schuchardt wrote:
> On 1/17/24 23:24, Janne Grunau via B4 Relay wrote:
>> From: Andre Przywara <andre.przywara at arm.com>
>>
>> UEFI relies entirely on unicode output, which actual fonts displayed on
>> the screen might not be ready for.
>>
>> Add a test displaying some international characters, to reveal missing
>> glyphs, especially in our builtin fonts.
>
> How would I detect missing Bengali and Gujarati glyphs with this test?

Only by knowing what to expect or to check the test code.

> What might help would be an output of the Unicode entries in the font in
> parallel with the glyph.

I'm not sure how useful it would be to extend the amount of text to register during the test. Even with the 3 second wait added in the the box drawing test time is short to check the results. Running the tests optionally with pagination might be an option.

>      U+0040, @
>      U+0041, A
>      U+0A85. અ
>      U+0A86. આ
>      U+0A87. ઇ
>      U+0A88. ઈ
>      U+0A89. ઉ
>
> This would require some new command but not an EFI test.

Wouldn't we need both? Console tests to check if the intended glyphs are shown would be useful but the EFI selftest should still tests that it can render UTF-8 correctly (partial support on cp437 bitmap font consoles).

Best regards
Janne


More information about the U-Boot mailing list