Overview
| Artifact ID: | c0a14c8a0fe391e57fe1cdcdf862d838465b8831 |
|---|---|
| Ticket: | 530960ffffffffffffffffffffffffffffffffff
Glob munges 1st char on Win98 |
| User & Date: | nobody on 2002-03-18 15:35:52 |
Changes
- icomment:
Logged In: NO Hang on! I just remembered that to solve the big slowdown on Win95/98 with the vfs code we had to make normalized paths on those platforms have backslashes (and be the 'short' form of a path). On Win NT/2000/XP the normalized form has forward slashes and the 'long form'. This means 'pwd' should be C:\ on 98, and the problem is around line 1730 in tclIOUtil.c. How about using the following block of code there: cwdDir = Tcl_DuplicateObj(cwd); Tcl_IncrRefCount(cwdDir); cwdStr = Tcl_GetStringFromObj(cwdDir, &cwdLen); #ifdef __WIN32__ if ((cwdStr[cwdLen-1] != sep) && (cwdStr [cwdLen-1] != '\\')) { #else if (cwdStr[cwdLen-1] != sep) { #endif Tcl_AppendToObj(cwdDir, &sep, 1); cwdLen++; /* Note: cwdStr may no longer be a valid pointer */ } - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"