Overview
| Artifact ID: | 0607edd34eb467f56f73ee0320b9784421828995 |
|---|---|
| Ticket: | 500348ffffffffffffffffffffffffffffffffff
fconfigure for serial ports failure |
| User & Date: | schroedter on 2002-01-07 11:06:15 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
Tcl version: Current 8.4 CVS, Windows There is a bug in the TIP#35 implementation in SerialSetOptionProc(): It occasionally modifies the 'value' argument to upper case letters. The following script demonstrates the problem: set filename com1 proc openFile {} { global filename chan set chan [open $filename r+] fconfigure $chan -mode 9600,n,8,1 fconfigure $chan -handshake none fconfigure $chan -buffering none } openFile [fconfigure -handshake none] modifies "none" to "NONE". The following [fconfigure -handshake buffering none] reuses the "NONE" value (when byte compiled) and fails. The attached patch uses lower case comparison instead of modifying the 'value' argument. PS: Shouldn't Tcl_DriverSetOptionProc be better declared as (... const char *optionName, const char *value) ? - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "schroedter"
- subsystem changed to: "27. Channel Types"
- title changed to: "fconfigure for serial ports failure"
- type changed to: "Bug"