Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TclPro: "fconfigure -mode" does not work

Closed / Fixed219194ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 05:03:22
OriginalBugID: 2654 Bug
Version: 1.2
SubmitDate: '1999-08-31'
LastModified: '2000-04-03'
Severity: CRIT
Status: Assigned
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 2670
OS: Solaris
OSVersion: 2.5.1
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
Holger Kanwischer

ReproducibleScript:
set x [open /dev/ttya r+]
    fconfigure $x -mode 19200,n,8,1
    puts stderr [fconfigure $x]

ObservedBehavior:
$ protclsh80 pro-mode-bug.tcl 
    -blocking 1 -buffering full -buffersize 4096 -eofchar {{} {}}
    -translation {auto crlf} -mode 0,n,0,0

DesiredBehavior:
$ tclsh8.0 pro-mode-bug.tcl 
    -blocking 1 -buffering full -buffersize 4096 -eofchar {{} {}}
    -translation {auto crlf} -mode 19200,n,8,1



This is definitely caused only in protclsh, not tclsh itself.
In protclsh8.2, it doesn't even recognize -mode as an option
(Tcl8.2 has no problem still).

On Linux (RH) this didn't work at all in Tcl8.2, but does in
8.3, so this has to be checked for TclPro1.4 (Tcl8.3 base). 
-- 04/03/2000 hobbs
rmaxplain2001-02-07 18:27:18
Seems to be related to bug #119405
dgp Ticket [219194ffff]: 2 changes [History diff]2001-04-03 06:20:13
hobbs Ticket [219194ffff]: 2 changes [History diff]2001-04-03 13:48:01
hobbsplain2001-04-05 02:02:48
Logged In: YES 
user_id=72656

There was a general problem of tty detection in some linux 
builds due to configure not configuring right.  This is 
fixed by patch 402923 in 8.4a3/8.3.3.
Log in (anonymous is fine) to add a comment.