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
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- 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).
- foundin changed to: "obsolete: 8.3.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vincentdarley"
- subsystem changed to: "38. Init - Library - Autoload"
- title changed to: "no public way to set encoding search"
- type changed to: "Bug"