From: <no...@so...> - 2002-04-12 19:40:42
|
Feature Requests item #219375, was opened at 2000-10-25 22:11 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=360894&aid=219375&group_id=10894 Category: 36. Init - Library - Autoload Group: = 8.4a3 Status: Open Resolution: None Priority: 6 Submitted By: Nobody/Anonymous (nobody) Assigned to: Don Porter (dgp) Summary: Add local initialization script for Tcl. Initial Comment: OriginalBugID: 5998 RFE Version: 8.1.1 SubmitDate: '2000-07-10' LastModified: '2000-10-25' Severity: LOW Status: UnAssn Submitter: techsupp OS: BSD OSVersion: BSD/OS 4.0.1 Machine: x86 pc architecture FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Robert Hare Extensions: BerkeleyDB.3.0, mpexpr1.0 DesiredBehavior: It would be nice to have the following code added to the init.tcl script: # Perform any local initialization. if {[file exists [file join [info library] init-local.tcl]]} { source [file join [info library] init-local.tcl] } This allows customized local initializations to be performed. In our case we want to add entries to the default auto_path so that packages we have installed can be found without having to tweak on the auto_path in every program. Patch: --- init.tcl.orig Tue Jun 15 08:28:19 1999 +++ init.tcl Fri Jul 7 11:10:00 2000 @@ -570,3 +570,9 @@ } } + + +# Perform any local initialization. +if {[file exists [file join [info library] init-local.tcl]]} { + source [file join [info library] init-local.tcl] +} PatchFiles: init.tcl ---------------------------------------------------------------------- >Comment By: Jeffrey Hobbs (hobbs) Date: 2002-04-12 12:40 Message: Logged In: YES user_id=72656 For Kevin's case, 8.4 (which uses nl_langinfo) should be much better already at guessing locales, but I still think there is value in have such a facility available to sysadmins. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2002-04-12 08:24 Message: Logged In: YES user_id=80530 Kevin Kenny notes in the Tcl'ers chat that a site-initialization script like this one would be the place for sysadmins to set the default locale for the Tcl library for their systems. More important as most localization stuff gets put into Tcl. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2001-07-21 11:58 Message: Logged In: YES user_id=80530 The referenced c.l.t thread is now available at: http://groups.google.com/groups?hl=en&safe=off&th=e11c0f97f99942,7&seekm=8kckfn%247jg%241%40bob.news.rcn.net I'm not sure which message Donal wanted to point to in particular. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2001-01-31 10:19 Message: Registered patch as #103526 ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2001-01-26 01:54 Message: Might I recommend particularly the following message from that thread: http://www.deja.com/getdoc.xp?AN=645101031 ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2001-01-25 12:58 Message: Back when this was first proposed, it spawned a thread on comp.lang.tcl. See http://deja.com/=dnc/viewthread.xp?AN=646185059 ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2001-01-25 02:10 Message: I like this idea, though I'm not too sure what the best location for such an initialization script is (apart from probably being platform-dependent.) What do other systems that have to deal with this problem do? ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=360894&aid=219375&group_id=10894 |