Skip to content
Tcl Source Code History Of Ticket 506297ffffffffff
Login

History Of Ticket 506297ffffffffff

Artifacts Associated With Ticket 506297ffffffffff

  1. Ticket change [9dee264f54] (rid 96390) by ruric on 2002-01-21 05:46:15:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This happens on tcl8.3.4 (also tested on 8.3.3) on Linux.
      
      I have a channel open for writing with encoding
      iso2022-jp. When I "puts" a certain string tcl gets
      stuck in a loop and the output file starts growing
      indefinitely. The problem can be demonstrated by the
      following script:
      
      set string [format %s%c [string repeat " " 4094] 12399]
      set f [open out w 0644]
      fconfigure $f -encoding iso2022-jp
      puts -nonewline $f $string
      close $f
      
      This script will, when executed, never get past teh
      puts statement and the outfile will start to grow (fast:-).
      
      The problem lies in WriteChars in tclIO.c. When
      Tcl_UtfToExternal is called with TCL_ENCODING_START set
      among the flags, then it will always generate at least
      three bytes (assuming the output encoding is
      iso2022-jp).  However it did not consume any of the
      characters in the input buffer (at least not if
      TCL_ENCODING_END is clear). But the logic in WriteChars
      thinks that since it generated output we shoudl call it
      again...
      
      The attached patch fixes this by removing the
      TCL_ENCODING_START bit from flags after the first call
      to Tcl_UtfToExternal.
      
      
    4. foundin initialized to: "obsolete: 8.3.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "ruric"
    9. subsystem initialized to: "24. Channel Commands"
    10. title initialized to: "Problems writing iso2022-jp"
    11. type initialized to: "Bug"
  2. Add attachment "patch" [e592cfa4f6] (rid 104141) by ruric on 2002-01-21 12:46:16.

  3. Ticket change [b8be565ff9] (rid 129012) by ruric on 2002-01-21 12:46:16:

    1. icomment:
      
      
      File Added - 16459: patch
      
      
      
    2. login: "ruric"
    3. mimetype: "text/plain"
    4. username: "ruric"
  4. Ticket change [68d4973346] (rid 103137) by ruric on 2002-01-21 12:57:07:

    1. icomment:
      Logged In: YES 
      user_id=433503
      
      OOPS, it seems as sourceforge actually inserted this into
      the bug-database even through it gave men an error. At least
      that applies to the earlier three copies now in there(:-().
      
      So currently there are four reports for this bug:  506189
      506292 506296 and this one
      
      
    2. login: "ruric"
    3. mimetype: "text/plain"
    4. resolution changed to: "Duplicate"
    5. username: "ruric"
  5. Ticket change [b4f6876f6a] (rid 125148) by andreas_kupries on 2002-01-21 13:14:39:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Yep. I closed the others already. I will take this as the
      main report, simply because here the submitter is not
      Nobody/Anonymous :)
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  6. Ticket change [4d80a063b5] (rid 127063) by andreas_kupries on 2002-01-22 02:52:38:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      * Confirmed behaviour for 8.3.4 and 8.4cvs
      
      After the fix an outfile of size 4105
      bytes is generated. Checksumming:
      
      [andreask@pliers 84]$ cksum out
      1762614785 4105 out
      
      [andreask@pliers 84]$ md5sum out
      b14544da022231b9116e2c4ca1acb7c5  out
      
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  7. Ticket change [f2839af489] (rid 109555) by andreas_kupries on 2002-01-22 03:36:04:

    1. icomment:
      
      
      File Added - 16496: 506297-834.diff
      
      Logged In: YES 
      user_id=75003
      
      Enclosing the official patches. Additional comments in the 
      code explaining the problem and the fix. Additional test in 
      the testsuite to check for this problem.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Add attachment "506297-834.diff" [a1e350766e] (rid 109802) by andreas_kupries on 2002-01-22 03:36:04.

  9. Ticket change [b4c232d7a4] (rid 125099) by andreas_kupries on 2002-01-22 03:36:39:

    1. icomment:
      
      
      File Added - 16497: 506297-84.diff
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  10. Add attachment "506297-84.diff" [6dafb0e11d] (rid 128745) by andreas_kupries on 2002-01-22 03:36:39.

  11. Ticket change [77c7adc412] (rid 89828) by andreas_kupries on 2002-01-22 03:38:49:

    1. closedate changed to: "2002-01-21T20:38:49"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      Logged In: YES 
      user_id=75003
      
      Committed to head and core-8-3-1-branch.
      
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "andreas_kupries"