]> git.baikalelectronics.ru Git - uboot.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)
commit8e42599c0e161c37b846525933064878d34cdec1
tree6f471341b3c6e6ae0fb98ad1193553dacf08825e
parent9e762623d990ac50c6b9dedeb782ed108607ddcb
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