Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a197a0c9d5c8d94134054b60645e35eefe7fa43a
Ticket: 819667ffffffffffffffffffffffffffffffffff
misidentified windows com port
User & Date: nobody on 2003-10-08 00:10:02
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The Windows GetFileType() command incorrectly returns
    FILE_TYPE_UNKNOWN for a com port when using a "KeySpan
    high speed USB serial port" device.  As a result, the
    channel logic doesn't realize that the port is in fact
    a serial port. 
    
    The attached patch adds a new condition when
    determining the file type, where GetFileType() returns
    FILE_TYPE_UNKNOWN, but there is no error, the handle is
    checked against a serial port and console anyways. 
    (It's not clear if the console would ever fall into
    this case, but it doesn't hurt).  With this change, the
    USB serial port is correctly identified as a COM port
    and the serial port-only fconfigure options work as
    expected.
    
    In addition to the above fix, this logic was duplicated
    in two places, TclpOpenFileChannel() and
    Tcl_MakeFileChannel().  The logic was extracted from
    both places and combined into a new file static
    function FileGetType().
    
  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: "nobody"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "misidentified windows com port"
  11. type changed to: "Patch"