Commit ff3f33eea46cd58b490a88bc90e9e572bff70d0f

Bruno Haible 2023-03-21T17:47:04

vasnwprintf: Fix for older platforms without swprintf. * lib/vasnprintf.c (VASNPRINTF): In the %lc handling, ignore the precision. Convert the snprintf result to a wchar_t[] not by mbsrtowcs, but by a loop that does not stop at NUL characters. * tests/test-vasnwprintf-posix.c (test_function): Add more tests for the %c and %lc directives. * modules/vasnwprintf (Depends-on): Add mbrtowc. Remove mbsrtowcs.