Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3d757b1b65a39fbe70014ade3fd75c13180d9897
Ticket: 1334273fffffffffffffffffffffffffffffffff
[encoding convertfrom] falls through to iso8859-1
User & Date: nobody on 2005-10-21 15:30:53
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. 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]
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "[encoding convertfrom] falls through to iso8859-1"
  11. type changed to: "Bug"