Overview
| Artifact ID: | 5aaf8dae8e1c0732b2b61bde7d6f0ae3f8ea5a3d25f75e0a88ab6deaba10d10b |
|---|---|
| Ticket: | fc4393e9b04b2573642251a6aeaf06468339cd55
UnicodeToUtfProc bogus in [edce885a5c] |
| User & Date: | jan.nijtmans on 2019-12-07 22:03:46 |
Changes
- closedate changed to: "2458825.41928975"
- closer changed to: "jan.nijtmans"
- icomment:
The main reason for this asymmetry is the function Tcl_UtfToUniChar(), which behaves differently for TCL_UTF_MAX=6: 4-byte UTF-8-sequences will be converted to Unicode in one step, while for TCL_UTF_MAX=3|4 upper/lower surrogates will be delivered. The encoding should result in exactly the same chars, so in case of TCL_UTF_MAX=6 we have to split them into surrogates ourselves. All corner-cases have test-cases, even high-surrogates not followed by low-surrogates and low-surrogates not preceded by high-surrogates. But if you find a situation that's handled incorrectly, please let me know.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"