[PATCH 0/2] lib: fix snprintf() for UTF-16 strings
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Sat Jan 29 18:40:12 CET 2022
Up to now printing UTF-16 strings with snprintf() resulted in correct
truncation of printed strings. But the returned required buffer length
was incorrect.
* fix function string16()
* provide a unit test
Heinrich Schuchardt (2):
lib: fix snprintf() for UTF-16 strings
test: test UTF-16 truncation in sprintf()
lib/vsprintf.c | 14 ++++++++++++--
test/unicode_ut.c | 31 +++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 2 deletions(-)
--
2.33.1
More information about the U-Boot
mailing list