|
2001-04-14
| ||
| 02:18 | • Ticket [218415ffff] Win95 path slash bug fix status still Closed with 2 othe... artifact: 95b91e6d85 user: dgp | |
| 02:18 | • Ticket [218415ffff]: 1 change artifact: 24d8c76f60 user: dgp | |
|
2000-10-26
| ||
| 08:21 | • Closed ticket [218415ffff]. artifact: 8ee0ab7c6b user: welch | |
| 00:57 | • New ticket [218415ffff]. artifact: 918473072f user: nobody | |
Win95 path slash bug fix
Closed / Fixed218415ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:57:17
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
welch Closed ticket [218415ffff].
[History diff]2000-10-26 08:21:18
dgp Ticket [218415ffff]: 1 change
[History diff]2001-04-14 02:18:21
dgp Ticket [218415ffff]: 2 changes
[History diff]2001-04-14 02:18:22
Log in (anonymous is fine) to add a comment.