Fix for invalid UTF, fix for multiple anonymous function definitions

This commit is contained in:
caheckman 2019-04-09 10:39:35 -04:00
parent d95a0a05a1
commit c87adb2115
3 changed files with 30 additions and 10 deletions

View file

@ -446,6 +446,10 @@ bool PrintLanguage::unicodeNeedsEscape(int4 codepoint)
if (codepoint == 0x3000) {
return true; // ideographic space
}
if (codepoint >= 0xd7fc) { // D7FC - D7FF are currently unassigned.
// D800 - DFFF are high and low surrogates, technically illegal.
return true; // Treat as needing to be escaped
}
return false;
}
if (codepoint < 0xf900) {