Overview
| Artifact ID: | c29c084b1cbe929f5dfd0d96ed53dd6c3eab6d67ac9f3c871449ef92e3e898bb |
|---|---|
| Ticket: | 1334273fffffffffffffffffffffffffffffffff
[encoding convertfrom] falls through to iso8859-1 |
| User & Date: | apnadkarni on 2026-04-21 15:42:46 |
Changes
- assignee changed to: "aku"
- closedate changed to: "2461152.1547028124"
- closer changed to: "apnadkarni"
- comment changed to:
When the .enc file of a one-byte encoding specifies that a code point is unassigned (with 0000), [encoding convertfrom] seems to return the Unicode of iso8859-1 instead of 0. man Tcl_GetEncoding(): "If a character in the encoding maps to the Unicode character 0000, it means that the character doesn't actually exist. " Example: iso8859-6.enc contains 0000 for \xFF (last row, last four digits). But % scan [encoding convertfrom iso8859-6 \xFF] %c 255 Expected behavior: 0 Workaround at http://wiki.tcl.tk/14874 (reads enc file pedestrianly, excerpts the 4-digit substring from there...) [email protected]
- icomment:
Closing. Tcl 9 raises an error (correctly) and too late to fix for Tcl 8.
- login: "apnadkarni"
- mimetype: "text/plain"
- resolution changed to: "Out of Date"
- severity changed to: "Minor"
- status changed to: "Closed"