Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2f5da41e4719d1373fc4077a6da7ed0b471e7e70
Ticket: 219309ffffffffffffffffffffffffffffffffff
TCL_LIBRARY can not be a standard Unix path list
User & Date: nobody on 2000-10-26 05:10:29
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3401 RFE
    Version: 8.2.1
    SubmitDate: '1999-11-05'
    LastModified: '2000-02-05'
    Severity: LOW
    Status: UnAssn
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Yu Zhang
    
    CVS:
    last update: 4:30pm, 10/21/99 RCS: @(#) $Id: tclUnixInit.c,v 1.17 1999/07/22 21:50:56 redman Exp
    
    DesiredBehavior:
    For our product, in different configurations, Tcl library path will be
        different. So it's desirable that TCL_LIBRARY becomes standard Unix path
        list, i.e. multiple directories split with ":" to support these
        configurations.
    
    Patch:
    --- tclUnixInit.c       Thu Oct 21 16:17:08 1999
    ***************
    *** 238,252 ****
          str = Tcl_DStringValue(&buffer);
    
          if ((str != NULL) && (str[0] != '\0')) {
    !       /*
    !        * If TCL_LIBRARY is set, search there.
             */
    !
    !       objPtr = Tcl_NewStringObj(str, -1);
    !       Tcl_ListObjAppendElement(NULL, pathPtr, objPtr);
    
    !       Tcl_SplitPath(str, &pathc, &pathv);
    !       if ((pathc > 0) && (strcasecmp(installLib + 4, pathv[pathc-1]) != 0)) {
                /*
                 * If TCL_LIBRARY is set but refers to a different tcl
                 * installation than the current version, try fiddling with the
    --- 238,256 ----
          str = Tcl_DStringValue(&buffer);
    
          if ((str != NULL) && (str[0] != '\0')) {
    !       /*
    !        * If TCL_LIBRARY is set, add every path in TCL_LIBRARY into
    !        * path list
             */
    !       char *tmp_str, *last;
    
    !       tmp_str = strtok_r(str, ":", &last);
    !       while (tmp_str) {
    !           objPtr = Tcl_NewStringObj(tmp_str, -1);
    !           Tcl_ListObjAppendElement(NULL, pathPtr, objPtr);
    !
    !           Tcl_SplitPath(tmp_str, &pathc, &pathv);
    !           if ((pathc > 0) && (strcasecmp(installLib + 4, pathv[pathc-1]) != 0)) {
                /*
                 * If TCL_LIBRARY is set but refers to a different tcl
                 * installation than the current version, try fiddling with the
    ***************
    *** 255,267 ****
                 * version string.
                 */
    
    !           pathv[pathc - 1] = installLib + 4;
    !           str = Tcl_JoinPath(pathc, pathv, &ds);
    !           objPtr = Tcl_NewStringObj(str, Tcl_DStringLength(&ds));
    !           Tcl_ListObjAppendElement(NULL, pathPtr, objPtr);
    !           Tcl_DStringFree(&ds);
    !       }
    !       ckfree((char *) pathv);
          }
    
          /*
    --- 259,274 ----
                 * version string.
                 */
    
    !               pathv[pathc - 1] = installLib + 4;
    !               tmp_str = Tcl_JoinPath(pathc, pathv, &ds);
    !               objPtr = Tcl_NewStringObj(tmp_str, Tcl_DStringLength(&ds));
    !               Tcl_ListObjAppendElement(NULL, pathPtr, objPtr);
    !               Tcl_DStringFree(&ds);
    !           }
    !           ckfree((char *) pathv);
    !
    !           tmp_str = strtok_r(NULL, ":", &last);
    !        }
          }
    
          /*
    
    PatchFiles:
    tclUnixInit.c
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.2.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "61. (unused)"
  10. title changed to: "TCL_LIBRARY can not be a standard Unix path list"
  11. type changed to: "RFE"