Procházet zdrojové kódy

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)
Idan Horowitz před 4 roky
rodič
revize
fdacfefd09
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Libraries/LibVT/Terminal.cpp

+ 1 - 1
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] {