From 4d6f2afa5a2c3b7828ac6d43eb81ddf4d5f14154 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 20 Jun 2026 15:22:35 +0100 Subject: [PATCH] fx: encoding: treat the entire reserved range of codepoints as control characters --- fx/encoding.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fx/encoding.c b/fx/encoding.c index 1ad2683..38fd47f 100644 --- a/fx/encoding.c +++ b/fx/encoding.c @@ -1217,11 +1217,8 @@ static bool wchar_is_control(fx_wchar c) return true; } - if (c == 0xFEFF) { - return true; - } - - if (c >= 0xFFF9 && c <= 0xFFFB) { + /* treat the reserved range as control characters */ + if (c >= 0xF0000 && c <= 0xFFFFD) { return true; }