Menu

#473 Fix for bug where encoding escape chars get written twice

closed-accepted
7
2007-02-12
2006-07-03
Mo DeJong
No

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.

Discussion

  • Mo DeJong

    Mo DeJong - 2006-07-03

    Escape 2 times patch

     
  • Don Porter

    Don Porter - 2006-07-03

    Logged In: YES
    user_id=80530

    Is this related to 1462248 ?

     
  • Don Porter

    Don Porter - 2006-07-03
    • assigned_to: hobbs --> andreas_kupries
     
  • Mo DeJong

    Mo DeJong - 2006-07-03

    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.

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2007-02-09
    • priority: 5 --> 7
     
  • Andreas Kupries

    Andreas Kupries - 2007-02-12
    • status: open --> closed-accepted
     
  • Andreas Kupries

    Andreas Kupries - 2007-02-12

    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.

     
MongoDB Logo MongoDB