mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +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:
parent
ddeb261bc2
commit
fdacfefd09
1 changed files with 1 additions and 1 deletions
|
@ -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] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue