Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e4116a33c33f092c5c55e5d3cf57a28c26f90d8b
Ticket: 1201171fffffffffffffffffffffffffffffffff
TclpSetInitialEncodings works only once on Unix
User & Date: jcw on 2005-05-17 02:10:27
Changes

  1. icomment:
    Logged In: YES 
    user_id=1983
    
    Don, unfortunately I'm not really the person to ask for comments on this.  
    Perhaps Vince or Jeff can comment.  I have never grasped the intricacies of 
    Tcl's init sequence.
    
    With that out of the way... if avoiding double init is merely an optimization, 
    then it seems to me that the above change would be ok.  It essentially lets 
    some of the code run on every call to TclpSetInitialEncodings. Might also be a 
    hint about splitting this in two separate functions.  This code only affects the 
    Unix builds, I don't know how Windows differs.
    
    What Tclkit needs has always been the same: set up a Tcl interp without 
    encodings at hand to let it run a bit of plain ASCII Tcl, then tell the system 
    about encoding files which now are available.
    
    Sorry I can't be of much help.
    
    -jcw
    
    
  2. login: "jcw"
  3. mimetype: "text/plain"
  4. username: "jcw"