
29 Jan
2022
29 Jan
'22
6:40 p.m.
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