Skip to content
Tcl Source Code History Of Ticket 218415
Login

History Of Ticket 218415

Artifacts Associated With Ticket 218415

  1. Ticket change [918473072f] (rid 120628) by nobody on 2000-10-26 00:57:17:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5495 Bug
      Version: 8.3.1
      SubmitDate: '2000-05-15'
      LastModified: '2000-05-17'
      Severity: SER
      Status: Closed
      Submitter: angie
      ChangedBy: hobbs
      OS: All Windows
      OSVersion: Windows 95
      FixedDate: '2000-10-25'
      ClosedDate: '2000-05-17'
      
      
      Name:  Mark Jordan
      
      DesiredBehavior:
        PROBLEM
          ~~~~~~~
          Using backward slashes actually BREAKS some stuff on Windows 95/98.
          Doing a SetCurrentDirectory("\\machine\share\dirname"); sets the
          current drive to 0 - invalid. Doing a 
          SetCurrentDirectory("//machine/share/dirname"); does not change the
          current drive. Using open with an invalid current drive fails,
          even for absolute paths!
      
          CHANGES
          ~~~~~~~
          1. In Tcl_TranslateFileName(interp, name, bufferPtr), the following
             pieces of code are #ifdef'ed out.
      
          #ifdef NO_SLASH_BUGFIX
          register char *p;
          #endif
      
          #ifdef NO_SLASH_BUGFIX
          if (tclPlatform == TCL_PLATFORM_WINDOWS) {
      for (p = Tcl_DStringValue(bufferPtr); *p != '\0'; p++) {
          if (*p == '/') {
      *p = '\\';
          }
      }
          }
          #endif
      
          FILES AFFECTED
          ~~~~~~~~~~~~~~
          tcl8.3.1\generic\tclFileName.c
      
      Patch:
      diff -c -r tcl8.3.1/generic/tclFileName.c /home5/pubseq/share/src/tcl8.3.1/generic/tclFileName.c
      *** tcl8.3.1/generic/tclFileName.cThu Apr 20 00:24:52 2000
      --- /home5/pubseq/share/src/tcl8.3.1/generic/tclFileName.cMon May  8 14:06:45 2000
      ***************
      *** 1009,1015 ****
      --- 1009,1017 ----
            Tcl_DString *bufferPtr;/* Uninitialized or free DString filled
         * with name after tilde substitution. */
        {
      + #ifdef NO_SLASH_BUGFIX
            register char *p;
      + #endif
      
            /*
             * Handle tilde substitutions, if needed.
      ***************
      *** 1053,1058 ****
      --- 1055,1070 ----
             * some system interfaces don't accept forward slashes.
             */
      
      + #ifdef NO_SLASH_BUGFIX
      +     /* 
      +      * Using backward slashes actually BREAKS some stuff on Windows 95/98.
      +      * Doing a SetCurrentDirectory("\\machine\share\dirname"); sets the
      +      * current drive to 0 - invalid. Doing a 
      +      * SetCurrentDirectory("//machine/share/dirname"); does not change the
      +      * current drive. Using open with an invalid current drive fails,
      +      * even for absolute paths!
      +      */
      + 
            if (tclPlatform == TCL_PLATFORM_WINDOWS) {
        for (p = Tcl_DStringValue(bufferPtr); *p != '\0'; p++) {
            if (*p == '/') {
      ***************
      *** 1060,1065 ****
      --- 1072,1078 ----
            }
        }
            }
      + #endif
            return Tcl_DStringValue(bufferPtr);
        }
        \f
      
      
      
      This is not at all the correct behavior for the user's machine.
      The code is 100% correct, as backed by the MSDN and correct
      behavior on others machines.  It is possible that in the user's
      case above, the machine they are trying to access requires
      password authentication, which aren't handled and may return the 0. 
      -- 05/17/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.3.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "Win95 path slash bug fix"
    11. type initialized to: "Bug"
  2. Ticket change [8ee0ab7c6b] (rid 120191) by welch on 2000-10-26 08:21:18:

    1. closedate changed to: "2000-10-26T01:21:18"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [24d8c76f60] (rid 131175) by dgp on 2001-04-14 02:18:21:

    1. subsystem changed to: "36. Pathname Management"
  4. Ticket change [95b91e6d85] (rid 106203) by dgp on 2001-04-14 02:18:22:

    1. closedate changed to: "2001-04-13T19:18:22"
    2. closer changed to: "dgp"