Overview
| Artifact ID: | 3ecf8689e1124ef8ee8eb9d68f3ab4022be71558a6aab1488bb2bc7b54bb3a0c |
|---|---|
| Ticket: | d19fe0a5bf54c97217eaba4b28a2c80cf4d16c13
Handling incomplete byte sequences for utf-16/utf-32 |
| User & Date: | jan.nijtmans on 2023-02-21 08:36:45 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
Example: <pre> % encoding convertfrom utf-16le \x41\x00\x41 A </pre> In Tcl 8.7, we see what's happening when using -strict <pre> % encoding convertfrom -strict utf-16le \x41\x00\x00 unexpected byte sequence starting at index 2: '\x0' </pre> But in Tcl 8.6 we don't have -strict, and the byte is silently ignored. That's not good. Many encodings either output the remaining bytes as-is or the replacement character \xFFFD. For UTF-16/32 outputting the remaining bytes (which easily could be \x00) doesn't make much sense. So most logical would be to output the replacement character in this case (just one).
- foundin changed to: "8.6"
- is_private changed to: "0"
- login: "jan.nijtmans"
- priority changed to: "5 Medium"
- private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "jan.nijtmans"
- subsystem changed to: "- New Builtin Commands"
- title changed to:
Handling incomplete byte sequences for utf-16/utf-32
- type changed to: "Bug"