Overview
| Artifact ID: | a3f64d7dc98fabf271496cb2b433ebd294df022be9f56e99467a2ce6e04b4bfa |
|---|---|
| Ticket: | 7f1162a8674cc65c9b72169818badc3186f97678
concatenation does not make usable surrogate pairs |
| User & Date: | jan.nijtmans on 2021-04-13 06:33:48 |
Changes
- icomment:
> what is exactly valid and invalid in string internal representation? In Tcl 8.6, the internal representation is (modified) [https://en.wikipedia.org/wiki/CESU-8|CESU-8]. In Tcl 8.7 this changed to (modified) [https://simonsapin.github.io/wtf-8/|WTF-8]. The only difference between those two is when handling characters > U+FFFF. Tcl 8.6 any incorrect byte is interpreted as ISO-8859-1. In Tcl 8.7 this changed to CP1252, which is almost the same, except for bytes in the rance 0x80-0x9F. See [https://core.tcl-lang.org/tips/doc/trunk/tip/389.md|TIP #389] > to which time point exactly it becomes not valid? The error-correction is built into the function Tcl_UtfToUniChar(). So whenever the string is interpreted as (unicode) code points instead of bytes. > question 3-6 ... When I wrote TIP #389, I didn't realize that what's described there is actually WTF-8. So the above 3 links should give you everything you need to understand this.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"