Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0d7438e116f1958e0e55063467c84cc68a1d92b0
Ticket: 983509ffffffffffffffffffffffffffffffffff
Tcl_RegisterConfig ignores encoding failure
User & Date: dgp on 2004-07-01 16:05:03
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Tcl_RegisterConfig() receives a "valEncoding"
    argument that specifies the encoding for
    the string values in the "configuration" table
    of values.  Those values are copied into
    a dictionary, converting to UTF-encoding.
    
    Problem arises when
    Tcl_GetEncoding(NULL, valEncoding)
    returns NULL -- essentially meaning the
    appropriate *.enc file for that encoding could
    not be found.
    
    In that circumstance, T_RC ignores the
    encoding failure, and goes ahead an
    converts the config values according
    to whatever Tcl thinks the system encoding
    is at the moment.  
    
    Since T_GE() failed, we know this cannot
    be the right thing -- we are definitely converting
    based on the wrong encoding -- and worse, we
    can't even predict what wrong thing T_RC
    will do instead.
    
    When the "valEncoding" cannot be found,
    no data should be copied over to the
    dictionary, since it cannot be done correctly.
    Whether [pkgconfig] should also not be defined,
    or whether it should be defined with no data,
    I'm not sure.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "54. Configuration Reporting"
  10. title changed to: "Tcl_RegisterConfig ignores encoding failure"
  11. type changed to: "Bug"