Artifacts Associated With Ticket 1feb5897f8038615
Ticket change [2ae17061d6] (rid 155241) by m7j4k9 on 2017-08-03 10:00:17:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/html"
- comment initialized to:
The function <tt>TclParseHex</tt> in <tt>TclParse.c</tt> contains <pre> if (!isxdigit(digit) || (result > 0x10fff)) { break; } </pre> but Unicode defines code points up to <tt>0x10FFFF</tt>. <p> This simple typo in the code interferes with: social-media emoticons,<br/> game playing cards, academic interests like cuneiform, and much more.<br/>See <tt><a href="http://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt"> http://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt</a></tt> - foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "m7j4k9"
- priority initialized to: "5 Medium"
- private_contact initialized to: "19f06fe5054ecb07284f096bd2da5fdc29221e4e"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "m7j4k9"
- subsystem initialized to: "11. Conversions from String"
- title initialized to:
\Uhhhhhhhh implementation does not support all Unicode code points
- type initialized to: "Bug"
Ticket change [76a03371b0] (rid 155242) by jan.nijtmans on 2017-08-03 13:53:10:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2457969.07859517"
- closer changed to: "jan.nijtmans"
- icomment:
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.
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"