Allow everything Unicode except noncharacters and control characters

Thanks mniip, see a113cbe.
This commit is contained in:
Tamás Bálint Misius
2020-03-12 09:48:53 +01:00
parent a113cbe57d
commit 21b9e1a645

View File

@@ -263,7 +263,7 @@ bool Textbox::CharacterValid(int character)
return true;
case All:
default:
return character >= ' ';
return character >= ' ' && character <= 0x10FFFF && !(character >= 0xD800 && character <= 0xDFFF) && !(character >= 0xFDD0 && character <= 0xFDEF) && !((character & 0xFFFF) >= 0xFFFE);
}
return false;
}