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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user