diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2020-12-27 17:24:19 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-27 22:49:08 +0100 |
commit | fdacfefd0933af5daf3609a1e44de0675fb62217 (patch) | |
tree | e9c51a866dfbf7f54bc3846a1ca02a221fff2abc /Libraries/LibVT | |
parent | ddeb261bc26defc51433d2a49b7b961117212db2 (diff) | |
download | serenity-fdacfefd0933af5daf3609a1e44de0675fb62217.zip |
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)
Diffstat (limited to 'Libraries/LibVT')
-rw-r--r-- | Libraries/LibVT/Terminal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibVT/Terminal.cpp b/Libraries/LibVT/Terminal.cpp index 1943a5bd5c..8eafd88d44 100644 --- a/Libraries/LibVT/Terminal.cpp +++ b/Libraries/LibVT/Terminal.cpp @@ -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'�'); }; auto advance_utf8_parse = [this, ch] { |