From 7b9051afe516ff889a2d7d1c80aa0e04f9f70c33 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sun, 16 May 2021 12:12:36 +0000 Subject: [PATCH] LibVT: Fix 8-bit control codes clobbering UTF-8 Bytes in the 0x80..0x9F range were treated as C1 control codes, which prevented them from being parsed as UTF-8 bytes. This caused some characters (like U+DF, encoded as 0xC3 0x9F) from being recognized as printable characters. --- Userland/Libraries/LibVT/StateMachine.txt | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Userland/Libraries/LibVT/StateMachine.txt b/Userland/Libraries/LibVT/StateMachine.txt index 1cd20ce8b4..037d35ca0c 100644 --- a/Userland/Libraries/LibVT/StateMachine.txt +++ b/Userland/Libraries/LibVT/StateMachine.txt @@ -10,23 +10,7 @@ @anywhere { 0x18 => (Ground, Execute) 0x1a => (Ground, Execute) - [0x80..0x8f] => (Ground, Execute) - [0x91..0x97] => (Ground, Execute) - 0x99 => (Ground, Execute) - 0x9a => (Ground, Execute) - 0x9c => (Ground, _) - 0x1b => (Escape, _) - - 0x90 => (DcsEntry, _) - - 0x98 => (SosPmApcString, _) - 0x9e => (SosPmApcString, _) - 0x9f => (SosPmApcString, _) - - 0x9d => (OscString, _) - - 0x9b => (CsiEntry, _) } Ground {