Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_MakeFileChannel does not detect the file type

Closed / Duplicate219146ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:02:18
OriginalBugID: 885 RFE
Version: 8.1a2
SubmitDate: '1998-12-01'
LastModified: '1999-03-24'
Severity: MED
Status: Assigned
Submitter: stanton
ChangedBy: surles
OS: All
OSVersion: NA
Machine: NA
FixedDate: '2000-10-25'
FixedInVersion: NA
ClosedDate: '2000-10-25'


Tcl_MakeFileChannel should test to see if the channel is a socket, serial port, or standard file.



See the patch in /patches/tcl8.1a2/tclUnixChan.c.txt.
This patch is broken because it creates a channel with a socket type, but a normal file's client data.  Also, a similar fix should be applied to Windows.
davygrvyplain2001-01-13 07:31:34
This should be marked fix.  I recall it doing this already in tclWinChan.c
dkf Ticket [219146ffff]: 1 change [History diff]2001-02-01 03:25:27
andreas_kupriesplain2001-04-10 02:17:55
Logged In: YES 
user_id=75003

No. I checked and and it is really fixed for Windows, in
"tclWinChan.c". However there is no equivalent fix for
Unixoid systems. See also Bug #219269 which is essentially
the same.
dkfplain2001-06-06 19:52:55
Logged In: YES 
user_id=79902

#219169 is now a Patch as it contains a fix for this (it's
not quite straight-forward, alas, since you need to be
careful with TTY handling for console handling to work
right. :^)
Log in (anonymous is fine) to add a comment.