lib/vsprintf: print '?' for illegal Unicode sequence
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 15 Feb 2019 21:20:53 +0000 (22:20 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 16 Feb 2019 14:42:20 +0000 (15:42 +0100)
commit60c4454ddb98cb3e194483fb66652e0bb2552761
tree27d5b03a3b467b7a33cba236831296d83c78c7cb
parentd787caddf1ac69c3845992a435eafca3637b1fac
lib/vsprintf: print '?' for illegal Unicode sequence

Commit 0e66c10a7d80 ("lib: vsprintf: avoid overflow printing UTF16
strings") broke the Unicode unit tests: an illegal UTF16 code point
should be printed as '?'.

Fixes: 0e66c10a7d80 ("lib: vsprintf: avoid overflow printing UTF16 strings")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/vsprintf.c