|
2017-08-03
| ||
| 13:53 | • Closed ticket [1feb5897f8]: \Uhhhhhhhh implementation does not support all Unico... artifact: 76a03371b0 user: jan.nijtmans | |
| 10:00 | • New ticket [1feb5897f8]. artifact: 2ae17061d6 user: m7j4k9 | |
\Uhhhhhhhh implementation does not support all Unicode code points
Closed / Invalid1feb5897f80386159b1bb3f4f45fd082d78db303Created 9 years agoUpdated 9 years ago
Descriptionhtml2017-08-03 10:00:17
The function TclParseHex in TclParse.c contains
if (!isxdigit(digit) || (result > 0x10fff)) {
break;
}
but Unicode defines code points up to 0x10FFFF.
This simple typo in the code interferes with: social-media emoticons,
game playing cards, academic interests like cuneiform, and much more.
See
http://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt
jan.nijtmansplain2017-08-03 13:53:10
Yes, it's true that Tcl at this moment doesn't support code points above /uFFFF. But the code line you mention isn't the right fix. This Line checks if another hex-digit can be added without causing an overflow, so there's no bug here at all. The code is correct as-is. Just run the test-suite with your proposed changement, you'll see what I mean. There's ongoing work to add support for higher codepoints, but it's nog there yet.
Log in (anonymous is fine) to add a comment.