Tcl_UtfToChar16 should replace invalid chars with U+FFFD
Opene27c3246c3285fda0bfccad5a6f70e97e112c8ecCreated 181 days agoUpdated 181 days ago
Descriptionmarkdown2026-06-05 08:34:05
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.
Log in (anonymous is fine) to add a comment.