fx: encoding: treat the entire reserved range of codepoints as control characters

This commit is contained in:
2026-06-20 15:22:35 +01:00
parent 7cbd1eb162
commit 4d6f2afa5a
+2 -5
View File
@@ -1217,11 +1217,8 @@ static bool wchar_is_control(fx_wchar c)
return true; return true;
} }
if (c == 0xFEFF) { /* treat the reserved range as control characters */
return true; if (c >= 0xF0000 && c <= 0xFFFFD) {
}
if (c >= 0xFFF9 && c <= 0xFFFB) {
return true; return true;
} }