LibVT: Use the 'U+FFFD replacement character' to indicate a parsing error

Based on this recommendation in the Unicode standard:
https://www.unicode.org/versions/Unicode13.0.0/ch23.pdf (Page 32)
This commit is contained in:
Idan Horowitz 2020-12-27 17:24:19 +02:00 committed by Andreas Kling
commit fdacfefd09
Notes: sideshowbarker 2024-07-19 00:32:22 +09:00

View file

@ -829,7 +829,7 @@ void Terminal::on_input(u8 ch)
auto fail_utf8_parse = [this] { auto fail_utf8_parse = [this] {
m_parser_state = Normal; m_parser_state = Normal;
on_code_point('%'); on_code_point(U'<EFBFBD>');
}; };
auto advance_utf8_parse = [this, ch] { auto advance_utf8_parse = [this, ch] {