Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0607edd34eb467f56f73ee0320b9784421828995
Ticket: 500348ffffffffffffffffffffffffffffffffff
fconfigure for serial ports failure
User & Date: schroedter on 2002-01-07 11:06:15
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. 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) ?
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "schroedter"
  9. subsystem changed to: "27. Channel Types"
  10. title changed to: "fconfigure for serial ports failure"
  11. type changed to: "Bug"