mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +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
Notes:
sideshowbarker
2024-07-19 00:32:22 +09:00
Author: https://github.com/IdanHo 🔰
Commit: fdacfefd09
Pull-request: https://github.com/SerenityOS/serenity/pull/4572
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