summaryrefslogtreecommitdiff
path: root/Libraries/LibVT
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2020-12-27 17:24:19 +0200
committerAndreas Kling <kling@serenityos.org>2020-12-27 22:49:08 +0100
commitfdacfefd0933af5daf3609a1e44de0675fb62217 (patch)
treee9c51a866dfbf7f54bc3846a1ca02a221fff2abc /Libraries/LibVT
parentddeb261bc26defc51433d2a49b7b961117212db2 (diff)
downloadserenity-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.cpp2
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] {