Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 69291a94877fa7e2d280584eac4c75599b33b0f0
Ticket: 218737ffffffffffffffffffffffffffffffffff
-blocking mode doesn't on Windows com ports
User & Date: nobody on 2000-10-26 01:04:45
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1948 Bug
    Version: 8.0.4
    SubmitDate: '1999-04-27'
    LastModified: '2000-04-26'
    Severity: SER
    Status: Released
    Submitter: pat
    ChangedBy: hobbs
    OS: All
    OSVersion: NA
    Machine: NA
    FixedDate: '2000-04-26'
    FixedInVersion: 8.3.1
    ClosedDate: '2000-10-25'
    
    
    Name:  Berry Kercheval
    email:  [email protected]
    Support:  None
    Severity:  2
    Synopsis:  -blocking mode doesn't on Windows com ports
    
    ReproducibleScript:
    When a file channel $f is configured in -blocking mode (confirmed with fconfigure)
    and a "read $f $n" is issued, instead of reading $n bytes from the channel $f
    it reads as many are as available and returns immediately.  The problem appears to be near line 692 of TclWinChan.c.  The FILE_ASYNC flag is just ignored if *any* characters are ready; those are read and the function ComInputProc 
    returns immediately.  It appears that no effort is made to actually read 
    $n bytes, requiring the programmer to "roll their own" proc to read $n bytes.
    
    
    
    This works correctly (blocks) in 8.3.1 (fix was likely in 8.2). 
    -- 04/26/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.0.4"
  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: "63. (unused)"
  10. title changed to: "-blocking mode doesn't on Windows com ports"
  11. type changed to: "Bug"