Overview
| Artifact ID: | 95a31250ea87c592d107e1ed30ee79bd4b79545f13d2f9b909a073beb0f3519b |
|---|---|
| Ticket: | 1b1f5f0b53e243d444628c8f414ea9664b5be44f
Tcl_UtfNext incompatibility in Tcl 8.6.10 |
| User & Date: | jan.nijtmans on 2020-04-03 15:29:52 |
Changes
- assignee changed to: "jan.nijtmans"
- icomment:
Actually, I don't think that can actually happen: Tcl 8.6 never generates 4-byte UTF-8 sequences, it always splits them in two 3-byte UTF-8 sequences internally. This can only happen if an extension creates a string using Tcl_NewStringObj() which has a 4-byte UTF-8-sequences in it. Earlier Tcl versions handle this as 4 separate bytes, now Tcl tries to handle that more sensible as 2 surrogates. But not everywhere in the code that's handled correctly. Given that Tcl 8.6 is not designed to handle 4-byte UTF-8 sequences at all, it's a "unspecified behaviour". That said, I have no problem changing the #if TCL_UTF_MAX <= 4 back to #if TCL_UTF_MAX == 4 Thanks for noticing this (even though, I don't think you can actually show bad behavior using this with TCL_UTF_MAX=3). Test-case please?
- login: "jan.nijtmans"
- mimetype: "text/plain"