Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a4127c168656863205b3806ba8a6d4664d9bbe89512a011060a919763711e837
Ticket: 578030ffffffffffffffffffffffffffffffffff
Tcl_UniChar is only 16 bits
User & Date: jan.nijtmans on 2021-04-07 12:44:42
Changes

  1. assignee changed to: "aku"
  2. closedate changed to: "2459312.03104927"
  3. closer changed to: "jan.nijtmans"
  4. 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.
    
  5. icomment: "Fixed in Tcl 9.0 (not released yet). See TIP #497"
  6. login: "jan.nijtmans"
  7. mimetype: "text/x-fossil-wiki"
  8. resolution changed to: "Fixed"
  9. severity changed to: "Minor"
  10. status changed to: "Closed"