commit | ddbaff53da5b99563fa371db0b09544e139fdabb | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sat Feb 27 14:08:37 2021 +0100 |
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sun Mar 07 17:37:13 2021 +0100 |
tree | 6f471341b3c6e6ae0fb98ad1193553dacf08825e | |
parent | 73bb90cabcdffcd528d1002a12779779196bf200 [diff] |
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>