Tcl Source Code

View Ticket
Login
Ticket UUID: 1534347
Title: Can't create file named con.html
Type: Bug Created on: 2006-08-04 07:12:18
Submitter: weyrich_comp Assigned to: vincentdarley
Subsystem: 37. File System Severity:
Priority: 5 Medium Last modified: 2006-08-05 04:19:32
Status: Closed Closed by: hobbs
Resolution: Invalid Closed on: 2006-08-04 21:19:32
Version: obsolete: 8.4.13
Description:
This bug exists on Windows in both the 8.3 release 
bundled with the book, and with the 8.4 binary 
ActiveTcl8.4.13.0.261555-win32-ix86-threaded.exe,
both running on 32 bit Intel Windows XP

set out1 [open "conn.html" w]  ;# works
set out2 [open "con.html" w]   ;# throws 
error 'couldn't open "con.html": no such file or 
directory'

This is a pain becasue I need to create files for each 
of my topics, and one topic must be named "con"

I note that CON: was a special file in DOS attached to 
the console.  Is some layer of the software or 
operating system trying to treat con.html as a console 
device?

[email protected]
User Comments:
suchenwi added on 2006-08-04 15:19:00:
Logged In: YES 
user_id=1478027

This seems to be more of a Windows problem.
Try to create a file con.html with notepad - permission 
denied.
Try to save as con.html from notepad - you're first 
prompted that the file "con" does already exist; when you 
proceed, you're told that the file "con" (without 
extension) cannot be created.

D:\>ren conn.txt con.txt
A duplicate file name exists, or the file
cannot be found.

hobbs added on 2006-08-05 04:19:32:
Logged In: YES 
user_id=72656

This is indeed a Windows OS limitation.  NUL, CON, COM1,
etc. are all afflicted.