fx: encoding: treat the entire reserved range of codepoints as control characters
This commit is contained in:
+2
-5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user