From 752fdcea20a6e050cfff729ecbb622b8ddf5167b Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Thu, 30 May 2024 09:26:46 +0200 Subject: [PATCH] highlight: keep C1 controls intact this pretty obviously broke utf8. --- contrib/highlight | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/highlight b/contrib/highlight index 1d3458a..f09ce8b 100755 --- a/contrib/highlight +++ b/contrib/highlight @@ -39,7 +39,7 @@ def say(*args): def sanitize(s): # removes control characters so malicious actors can't mess up our terminal # with escape sequences. this also removes formatting codes. - return re.sub(rb"[\001-\011\013\014\016-\037\177\x80-\x9F]", b"", s) + return re.sub(rb"[\001-\011\013\014\016-\037\177]", b"", s) myself = None for line in sys.stdin.buffer: -- 2.39.3