Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-07-17
03:24 • Closed ticket [695422ffff]: Cleanup empty bufer handling plus 7 other change... artifact: 5232099613 user: andreas_kupries
2003-08-09
01:49 • Ticket [695422ffff]: 1 change artifact: 1be514c648 user: andreas_kupries
2003-04-11
16:02 • Ticket [695422ffff]: 4 changes artifact: 5bf0c054cb user: mdejong
2003-03-02
00:15 • Ticket [695422ffff]: 1 change artifact: 2161471286 user: vincentdarley
2003-03-01
10:04 • Add attachment empty_buffer.patch to ticket [695422ffffffffff|695422fff... artifact: 087003fcd8 user: mdejong
10:04 • Ticket [695422ffff] Cleanup empty bufer handling status still Open with 4 ot... artifact: 010684b51e user: mdejong
03:03 • New ticket [695422ffff]. artifact: e0a5854e16 user: mdejong

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: