Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e0a5854e16f5cd9ba5b6ce458b391f273449d9e8
Ticket: 695422ffffffffffffffffffffffffffffffffff
Cleanup empty bufer handling
User & Date: mdejong on 2003-03-01 03:03:29
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Here is a patch the cleans up empty buffer handling. I have
    run the test suite and get no failures, but I wanted to
    have
    someone else look at this to make sure I am not missing
    something.
    
    Here is the ChangeLog entry:
    
            * generic/tclIO.c (ReadBytes, ReadChars):
            Handle the case of en empty input buffer
    explicitly.
            This can happen when a cr appears at the end of an
            input buffer that is in crlf or auto mode. A flag
            is set to indicate that a lf at the start of the
            next buffer means that a single lf should be added.
            The problem in ReadBytes and ReadChars is that
            they assume that the buffer will be non-empty.
            It appears as though ReadBytes and ReadChars
            still function properly in this case, so the
            additional checks added here serve to make handling
            of this case more clear.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "4"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mdejong"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "Cleanup empty bufer handling"
  11. type changed to: "Patch"