Overview
| Artifact ID: | a197a0c9d5c8d94134054b60645e35eefe7fa43a |
|---|---|
| Ticket: | 819667ffffffffffffffffffffffffffffffffff
misidentified windows com port |
| User & Date: | nobody on 2003-10-08 00:10:02 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- 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().
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "25. Channel System"
- title changed to: "misidentified windows com port"
- type changed to: "Patch"