Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c29c084b1cbe929f5dfd0d96ed53dd6c3eab6d67ac9f3c871449ef92e3e898bb
Ticket: 1334273fffffffffffffffffffffffffffffffff
[encoding convertfrom] falls through to iso8859-1
User & Date: apnadkarni on 2026-04-21 15:42:46
Changes

  1. assignee changed to: "aku"
  2. closedate changed to: "2461152.1547028124"
  3. closer changed to: "apnadkarni"
  4. 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]
    
  5. icomment:
    Closing. Tcl 9 raises an error (correctly) and too late to fix for Tcl 8.
    
  6. login: "apnadkarni"
  7. mimetype: "text/plain"
  8. resolution changed to: "Out of Date"
  9. severity changed to: "Minor"
  10. status changed to: "Closed"