Menu

#2635 Tcl_FSGetNormalizedPath returns volume relative

obsolete: 8.5a1
closed-fixed
5
2004-03-26
2004-03-26
No

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.

Discussion

  • Vince Darley

    Vince Darley - 2004-03-26

    Logged In: YES
    user_id=32170

    Thanks -- fixed in cvs, with a test.

     
  • Vince Darley

    Vince Darley - 2004-03-26
    • status: open --> closed-fixed