Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6f9d2224df2809ae5419c2b1bac61fa312f41253d231bfb00c34c35451f9734a
Ticket: e27c3246c3285fda0bfccad5a6f70e97e112c8ec
Tcl_UtfToChar16 should replace invalid chars with U+FFFD
User & Date: apnadkarni on 2026-06-05 08:34:05
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    One of the important changes in Tcl 9 was to stop corrupting data by treating invalid UTF-8 sequences as CP1252. `Tcl_UtfToChar16` still engages in this behaviour and should be changed. Since error returns are not possible from this function as would be required by the `strict` profile, they should be handled as in the `replace` profile by substituting with U+FFFD.
    
  5. is_private changed to: "0"
  6. login: "apnadkarni"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to:
    Tcl_UtfToChar16 should replace invalid chars with U+FFFD
    
  15. type changed to: "Bug"