Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e755e55d6467f247e4a808ffcfd753f1dfb75794
Ticket: 463190ffffffffffffffffffffffffffffffffff
setting tcl_libPath doesn't change encoding search path
User & Date: vincentdarley on 2001-09-20 13:36:34
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When looking for encodings, Tcl searches along the 
    paths returned by TclGetLibraryPath(), which is stored 
    in the C variable 'tclLibraryPathStr'.  If an 
    application, extension or script wishes to augment the 
    native set of encodings with some new encodings, Tcl 
    provides no public way to achieve that.  The only 
    access to this value is through:
    
    "tclInt.h"
    TclGetLibraryPath()
    TclSetLibraryPath()
    
    "in scripts"
    $tcl_libPath  (but this is effectively read-only, 
    since any changes to the variable have no effect on 
    the C variable tclLibraryPathStr nor on the encoding 
    search path).
    
    A public way of either setting this search path or 
    directly adding encodings should be provided in Tcl (I 
    would lean towards the former).
    
    I don't have a concrete proposal to make, since I'm 
    not very familiar with this code, but it does seem 
    like if my script wants to use its own new encoding, 
    it ought to be able to do that without having to add 
    the encoding to a pre-existing directory on 
    $tcl_libPath (to which it might not have write access).
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.3.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vincentdarley"
  9. subsystem changed to: "38. Init - Library - Autoload"
  10. title changed to: "no public way to set encoding search"
  11. type changed to: "Bug"