Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ce0c647e1255a3d3b8896fbddff4e6f216595eb4
Ticket: 578030ffffffffffffffffffffffffffffffffff
Tcl_UniChar is only 16 bits
User & Date: keithp on 2002-07-06 06:26:41
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "keithp"
  9. subsystem changed to: "44. UTF-8 Strings"
  10. title changed to: "Tcl_UniChar is only 16 bits"
  11. type changed to: "Bug"