Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-08-05
04:19 • Closed ticket [1534347fff]: Can't create file named con.html plus 7 othe... artifact: de3e32b870 user: hobbs
2006-08-04
15:19 • Ticket [1534347fff]: 4 changes artifact: 5c6df6d4b9 user: suchenwi
07:12 • New ticket [1534347fff]. artifact: 7ccc18455e user: weyrich_comp

Can't create file named con.html

Closed / Invalid1534347fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-08-04 07:12:18
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]
suchenwiplain2006-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.
hobbsplain2006-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.
Log in (anonymous is fine) to add a comment.