[U-Boot] [PATCH v2 3/5] vsprintf.c: add UTF-16 string (%ls) support

Simon Glass sjg at chromium.org
Tue Sep 12 12:29:04 UTC 2017


On 9 September 2017 at 04:47, Rob Clark <robdclark at gmail.com> wrote:
> This is convenient for efi_loader which deals a lot with UTF-16.  Only
> enabled with CC_SHORT_WCHAR, leaving room to add a UTF-32 version when
> CC_SHORT_WCHAR is not enabled.
>
> Signed-off-by: Rob Clark <robdclark at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
>  examples/api/Makefile |  1 +
>  lib/vsprintf.c        | 30 ++++++++++++++++++++++++++++--
>  2 files changed, 29 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Would like to see simple test cases for these (e.g. somewhere like
test/vsprint.c). See test/ut_print.c for an example.


More information about the U-Boot mailing list