| Ticket UUID: | 2974459 | ||
| Title: | file readable reports Windows off-line files as unreadable | ||
| Type: | Bug | Created on: | 2010-03-22 10:14:55 |
| Submitter: | mikehedge | Assigned to: | aku |
| Subsystem: | 37. File System | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2013-09-24 22:05:05 |
| Status: | Closed | Closed by: | dkf |
| Resolution: | Fixed | Closed on: | 2013-09-24 22:05:05 |
| Version: | obsolete: 8.5.8 | ||
| Description: | ||||
The file readable command correctly reports files on Windows (XP Professional 2002/SP2) mapped drives as readable when reading is possible: % file exists r:\mydirectory\test.txt 1 % file readable r:\mydirectory\test.txt 1 % set chid [open r:\mydirectory\test.txt] filef0ca80 % set contents [read $chid] record 1 of 2 of test file test.txt record 2 of 2 of test file test.txt % close $chid However, if the file is now made off-line, effectively making a local copy, and the connection to the mapped drive removed, the (local) file still exists and is readable but file readable reports it is not (0): % file exists r:\mydirectory\test.txt 1 % file readable r:\mydirectory\test.txt 0<-- incorrect response % set chid [open r:\mydirectory\test.txt] fileefd600 % set contents [read $chid] record 1 of 2 of test file test.txt record 2 of 2 of test file test.txt % close $chid | ||||
| User Comments: | ||||
dkf added on 2010-03-22 20:26:25:
(issue is in/below Tcl_FSAccess) dgp added on 2012-01-14 01:26:39:
The branch 'fix-win-native-access' includes a patch that may fix the bug reported here. http://core.tcl.tk/tcl/info/0aabf0529e I'm not equipped to test the effectiveness of the patch, or whether it introduces any new test failures or other problems. I'd be grateful if folks who can and who are intersted in this bug and related bugs could do so, and report back whether the patch is suitable for merging into the release branches. dgp added on 2012-02-03 00:41:17:
Patch from fix-win-native-access branch committed for 8.4.20, 8.5.12, and 8.6b3. Continued testing strongly encouraged. In particular, the #define UNICODE variant of the trunk is likely to have some lingering problems. | ||||
