Overview
| Artifact ID: | 63d5cfc7094762ef89b80dd310222aa158674de5 |
|---|---|
| Ticket: | 504950ffffffffffffffffffffffffffffffffff
SetFsPathFromAny: ~//foo -> /foo |
| User & Date: | vincentdarley on 2002-01-22 17:40:59 |
Changes
- icomment:
Logged In: YES user_id=32170 My recommendation would be to implement those lines as 'Tcl_FSGetTranslatedPathString', followed by (on Windows) a manual translation of forward slashes to backslashes to yield the desired 'native path name'. The rest of the Tcl core's C code doesn't really care about the result of the Tcl-level command 'file nativename' (the core uses the caching Tcl_FSGetNativePath), so I think it's ok to do things like this. An alternative (more complex) would be to add a new Tcl_FS command which returns the relative part of the normalized native path, but that's quite a complex operation. Daniel Steffen may need to look at how the code handles runs of ':' if there are problems there. Hope that helps; sorry not to be more actively helpful right now.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"