Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cabe1920aec51a7cbbe5c15dd2ec929e60508979
Ticket: 652723ffffffffffffffffffffffffffffffffff
Inconsistent treatment of encoding names
User & Date: dkf on 2003-01-23 22:50:20
Changes

  1. assignee changed to: "hobbs"
  2. icomment:
    Logged In: YES 
    user_id=79902
    
    This is platform-specific behaviour caused by the fact that 
    Windows does not (normally) treat files as having case 
    sensitive names.  Essentially, what happens is that whenever 
    you ask for a currently unknown encoding, Tcl tries to load 
    the appropriate encoding definition file from its library 
    directory (hunt around; I'm sure you can find it) and that 
    succeeds because Windows is just case-preserving, not 
    case-sensitive.  On the other hand, the only encodings that 
    we *guarantee* to support are those returned by [encoding 
    names], which is not really much more than the results of a 
    glob of that lib dir.
    
    Note that the encodings "utf-8", "unicode" and "identity" are 
    special, in that they are handled internally.  Indeed, those are 
    the encodings that Tcl actually uses for its internal string 
    handling.  Because they are handled internally, they have no 
    associated encoding files and any attempt to load (for 
    example) UNICODE.enc will fail.
    
    Jeff, would you agree with me that this is therefore an invalid 
    bug?
    
    
  3. login: "dkf"
  4. mimetype: "text/plain"
  5. resolution changed to: "Invalid"
  6. subsystem changed to: "10. Objects"
  7. username: "dkf"