1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 07:18:13 +00:00

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
parent ddeb261bc2
commit fdacfefd09

View file

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