Overview
| Artifact ID: | f88312be86674811d55c6fd1aa1c900587c89ab8ee94cf1874f058470b0be7fa |
|---|---|
| Ticket: | 27944a3661a5e409dead945dbc8f9e4a50033e62
Taming test utf-6.88 |
| User & Date: | jan.nijtmans on 2020-04-24 10:48:54 |
Changes
- icomment:
> Did those changes get merged into 8.7? I left them in dgp-fixme, I thought. I merged them to 8.7 and trunk now. But without the Tcl_UtfToUniChar() -> Tcl_UtfNext() changes, since Tcl_UtfNext() steps over the full 4 bytes (since 4-byte UTF-8 sequences are now valid) while Tcl_UtfToUniChar() handles 4-byte sequences as if they are 2 surrogates (in a TCL_UTF_MAX=3 build). In a TCL_UTF_MAX=4 build, Tcl_UtfToUniChar() is able to step 4 bytes. > Set that aside. If there's trouble along those lines, it should show up > in a TCL_UTF_MAX=4 build of Tcl 8.6 just as well, right? In a Tcl 8.6 TCL_UTF_MAX=4 build (which is - actually - unsupported anyway), Tcl_UtfNext() is able to step 4 bytes, while Tcl_UtfToUniChar() will need two steps for this. So using Tcl_UtfNext() with an index correction (as you - apparently - prefer, I don't ....) behaves the same as using Tcl_UtfToUniChar(). I'm not aware of any trouble.
- login: "jan.nijtmans"
- mimetype: "text/plain"