Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-03-16
01:42 • Closed ticket [1158199fff]: when in a network directory, can't open "CO... artifact: 173bd5109f user: vincentdarley
01:35 • Ticket [1158199fff]: 4 changes artifact: a0e84f350e user: dgp
2005-03-15
21:25 • Ticket [1158199fff]: 5 changes artifact: e1a874b430 user: vincentdarley
01:27 • Ticket [1158199fff]: 4 changes artifact: 34455f13e5 user: vincentdarley
2005-03-07
10:54 • New ticket [1158199fff]. artifact: 8f200e589c user: nobody

when in a network directory, can't open "COM<n>:"

Closed / Fixed1158199fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-03-07 10:54:09
Platform: Windows XP.

When in a network directory, can't open "COM<n>:" channel.
Example:

    (bin) 4 % cd {\\the_server\my_account}
    () 5 % pwd
    //the_server/my_account
    () 6 % set chan [open "COM1:"]
    couldn't open "COM1:": no such file or directory

As a temporary workaround:  

    set curr_dir    [pwd]
    cd
    set chan        [open "COM1:"]
    cd  $curr_dir
vincentdarleyplain2005-03-15 01:27:53
Logged In: YES 
user_id=32170

Try 'open "com1:"' instead.  Does that work?  (i.e. with
lower case).

Also please do try Tcl 8.5alpha.
vincentdarleyplain2005-03-15 21:25:38
Logged In: YES 
user_id=32170

Ok, this is a bug in 8.4 and 8.5.  Tcl should deal with
these special names with both upper and lower case (or mixed
case for that matter). For the moment, a workaround is to
use lower case.

I'll aim to fix this for the next releases.
dgpplain2005-03-16 01:35:53
Logged In: YES 
user_id=80530


Looks like a commit meant
to fix this had broken the Tcl 
build on unix systems.  They
complain about an undefined
symbol "stricmp".
vincentdarleyplain2005-03-16 01:42:32
Logged In: YES 
user_id=32170

Ah, thanks -- fixed the unix build with a more verbose
approach to achieve the same end.

Fixed in 8.4 and 8.5 branches.
Log in (anonymous is fine) to add a comment.