Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-03-27
01:56 • Ticket [923568ffff] Tcl_FSGetNormalizedPath returns volume relative status s... artifact: 69825f6148 user: vincentdarley
01:56 • Closed ticket [923568ffff]. artifact: ead8c2d8ac user: vincentdarley
2004-03-26
00:16 • New ticket [923568ffff]. artifact: 1306214818 user: kennykb

Tcl_FSGetNormalizedPath returns volume relative

Closed / Fixed923568ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-03-26 00:16:51
If Tcl_FSGetNormalizedPath is passed a volume-relative
path name, and the volume is not the one where the
working directory resides, it returns the path name
in volume-relative form.  The comments in the code
say that it makes it relative to the root of the given
volume, but that's not what actually happens.  This
causes considerable surprise, since a normalized
path is supposed to be a unique identifier for a file.

I show below a brief case that demonstrates the problem.

% cd h:
% pwd
H:/
% file norm c:foo
c:foo

We should be able to design a regression test case
that exhibits the behavior on any system with at least
two drives, but I haven't done so.
vincentdarleyplain2004-03-27 01:56:50
Logged In: YES 
user_id=32170

Thanks -- fixed in cvs, with a test.
vincentdarley Ticket [923568ffff]: 2 changes [History diff]2004-03-27 01:56:51
Log in (anonymous is fine) to add a comment.