Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Cleanup empty bufer handling

Closed / Out of Date695422ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 22 years ago
Descriptionplain2003-03-01 03:03:29
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.
mdejongplain2003-03-01 10:04:37
File Added - 43755: empty_buffer.patch
vincentdarley Ticket [695422ffff]: 1 change [History diff]2003-03-02 00:15:26
mdejongplain2003-04-11 16:02:57
Logged In: YES 
user_id=90858

I did some more looking and I am not sure this patch is
correct now. I will have to get back to it.
andreas_kupries Ticket [695422ffff]: 1 change [History diff]2003-08-09 01:49:11
andreas_kupriesplain2004-07-17 03:24:03
Logged In: YES 
user_id=75003

Given the long time nothing has happened with this patch I
am placing this item on the queue to auto-close.
Log in (anonymous is fine) to add a comment.

Attachments: