[U-Boot] [PATCH v2 2/5] lib: add some utf16 handling helpers

Rob Clark robdclark at gmail.com
Mon Sep 11 14:34:19 UTC 2017


On Mon, Sep 11, 2017 at 10:13 AM, Alexander Graf <agraf at suse.de> wrote:
>
>
> On 09.09.17 12:47, Rob Clark wrote:
>>
>> We'll eventually want these in a few places in efi_loader, and also
>> vsprintf.
>>
>> Signed-off-by: Rob Clark <robdclark at gmail.com>
>
>
> UEFI wants UCS-2 (the 16 bit only Windows thing), not UTF16 (the
> may-also-be-32bit-wide thing).
>
> So I'm not sure how far away this code is from the ultimate truth of what we
> need for UEFI compatibility. Do you have any gut feeling?
>

+ leif & peter

I'm not entirely sure.  Grub seems to treat it as UTF-16, and from a
30sec look at wikipedia, it seems like UCS-2 is a subset of UTF-16.
But I won't claim to be a unicode expert.

BR,
-R


More information about the U-Boot mailing list