Artifacts Associated With Ticket 218135
Ticket change [711e1e4412] (rid 100618) by nobody on 2000-10-26 00:53:35:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2052 Bug Version: 8.1 SubmitDate: '1999-05-12' LastModified: '1999-09-15' Severity: MED Status: Closed Submitter: pat ChangedBy: hobbs OS: SunOS OSVersion: 5.6 Machine: Sparc FixedDate: '2000-10-25' ClosedDate: '1999-09-15' Name: Prasad A. Chodavarapu CustomShell: --threads-enabled ReproducibleScript: #include <tcl.h> #include <iostream.h> #include <assert.h> int main(int argc, char* argv[]) { Tcl_Interp* _interp = Tcl_CreateInterp(); assert(_interp); //Tcl_FindExecutable(argv[0]);//upto and incl. 8.1b2, tcl didn't need this if (Tcl_Init(_interp) == TCL_ERROR) { cerr << Tcl_GetStringFromObj(Tcl_GetObjResult(_interp),NULL) << endl; return -1; } return 0; } ObservedBehavior: Upto and incl. tcl8.1b2, we didn't need to necessarily call Tcl_FindExecutable(argv[0]) before calling Tcl_FindExecutable(argv[0]) In tcl8.1 final release, Tcl_Init fails saying it cannot find init.tcl in the directory list {empty} even though TCL_LIBRARY environment variable is correctly set to the directory where init.tcl resides. basically, Tcl_Init is ignoring the value of TCL_LIBRARY unless Tcl_FindExecutable(argv[0]) has been called. This is undesirable and not backwards incompatible. DesiredBehavior: As in previous versions, if TCL_LIBRARY is set, we shouldn't need to call Tcl_FindExecutable(argv[0]) before calling Tcl_Init(_interp) This change was made because without it, problems with encoding could occur. While not well doc'ed this isn't a bug. We are looking into maybe improving this for 8.3. -- 09/15/1999 hobbs - foundin initialized to: "obsolete: 8.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Tcl_Init fails if Tcl_FindExecutable wasn't called"
- type initialized to: "Bug"
Ticket change [d40bff8a16] (rid 123382) by welch on 2000-10-26 08:15:55:
- closedate changed to: "2000-10-26T01:15:55"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [b2ad17be52] (rid 98379) by dgp on 2001-04-18 06:25:18:
- closedate changed to: "2001-04-17T23:25:18"
- closer changed to: "dgp"
- subsystem changed to: "38. Init - Library - Autoload"