Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Fix for bug where encoding escape chars get written twice

Closed / Accepted1516109fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-07-03 02:57:15
This patch fixes a problem in the EscapeFromUtfProc
method, it needs to clear the TCL_ENCODING_END
flag after writing ending escape bytes so that
these bytes do not get written twice in the tricky
case where the end bytes overlap the end of an
IO buffer. Regression test included in the patch.
This patch was created from Tcl 8.5 CVS on 7/2/2006.
mdejongplain2006-07-03 09:57:16
File Added - 183673: escape2times.patch
dgpplain2006-07-03 20:33:35
Logged In: YES 
user_id=80530


Is this related to 1462248 ?
mdejongplain2006-07-04 02:30:48
Logged In: YES 
user_id=90858

I don't think this is related to 1462248, as that bug
deals with TCL_ENCODING_END when doing read operations
and this problem shows up only with a write operation.
hobbs Ticket [1516109fff]: 1 change [History diff]2007-02-10 05:33:45
andreas_kupriesplain2007-02-13 02:27:13
Logged In: YES 
user_id=75003
Originator: NO

Patch accepted and applied to Tcl 8.4 branch head. Nothing done for 8.5, I see that it was applied to the head on Dec 26, 2006.
Log in (anonymous is fine) to add a comment.

Attachments: