]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib/charset: utf8_get() should return error
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 27 Feb 2021 13:08:37 +0000 (14:08 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 7 Mar 2021 16:37:13 +0000 (17:37 +0100)
commitddbaff53da5b99563fa371db0b09544e139fdabb
tree6f471341b3c6e6ae0fb98ad1193553dacf08825e
parent73bb90cabcdffcd528d1002a12779779196bf200
lib/charset: utf8_get() should return error

utf8_get() should return an error if hitting an illegal UTF-8 sequence and
not silently convert the input to a question mark.

Correct utf_8() and the its unit test.

console_read_unicode() now will ignore illegal UTF-8 sequences.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/charset.c
test/unicode_ut.c