From fdacfefd0933af5daf3609a1e44de0675fb62217 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sun, 27 Dec 2020 17:24:19 +0200 Subject: [PATCH] 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) --- Libraries/LibVT/Terminal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] {