Overview
| Artifact ID: | a4127c168656863205b3806ba8a6d4664d9bbe89512a011060a919763711e837 |
|---|---|
| Ticket: | 578030ffffffffffffffffffffffffffffffffff
Tcl_UniChar is only 16 bits |
| User & Date: | jan.nijtmans on 2021-04-07 12:44:42 |
Changes
- assignee changed to: "aku"
- closedate changed to: "2459312.03104927"
- closer changed to: "jan.nijtmans"
- comment changed to:
Tcl_UniChar is defined as 'unsigned short' which restricts the range of Unicode codepoints representable in that type to the basic multilingual plane. Additionally, TCL_UTF_MAX is defined as 3 which restricts Utf-8 encoded strings to the same range. Redefining Tcl_UniChar as 'unsigned int' and TCL_UTF_MAX as 6 fixes the problem but leaves the library incompatible with existing compiled objects. If binary compatibility is a concern, perhaps the internal datatype can be changed and new APIs created for the wider set of values leaving the existing typedef in place along with the existing interfaces.
- icomment: "Fixed in Tcl 9.0 (not released yet). See TIP #497"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"