Overview
| Artifact ID: | 52658c55ee7e446204478a8ba93f9894cbd30d8dbfec083befee5010b6e861f7 |
|---|---|
| Ticket: | d8f12171564f57c9ed3ca098d9498b9d76dfb3f7
windows dos device paths inconsistencies and missing functionality |
| User & Date: | jan.nijtmans on 2024-08-12 08:40:27 |
Changes
- assignee changed to: "jan.nijtmans"
- icomment:
First of all: The windows path prefixes are \\?\ and \\.\, not //?/ and //./. Communicating with the win32 API, always backslashes should be used. Of cource, Tcl should handle that for you. I don't think Tcl should really support the \\?\ and the \\.\ syntax: They are a Windows hack to disable special Windows path processing. Tcl scripts should be portable. Therefore, Tcl already has some special file path processing (in the TclNativeCreateNativeRep() function) to handle this. See: [https://core.tcl-lang.org/tcl/file?name=win/tclWinFile.c&ci=d5bba172c8301ec9&ln=3074-3152] We could extend this special handling: If the path ends with '.' (but doesn't have a slash or backslash immediately before it), also add the \\?\ prefix. That would mean, Tcl scripts don't have to worry about adding the \\?\ prefix any more. I'll have a further look. Hope this helps, Jan Nijtmans - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"