Skip to content
Tcl Source Code History Of Ticket 2878945fff
Login

History Of Ticket 2878945fff

Artifacts Associated With Ticket 2878945fff

  1. Ticket change [da4d956490] (rid 107748) by dgp on 2009-10-14 14:56:01:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The docs of Tcl_ExternalToUtf() are unclear on the
      boundaries of the write buffer. They say "... and up
      to dstLen converted bytes are stored in dst." which
      suggests bytes will be written in dst[0] up
      to dst[dstLen-1]. And that appears to be an accurate
      description of what the underlying ToUtfProc() does.
      However, then Tcl_ExternalToUtf() appends a terminating
      NUL character, and if the ToUtfProc has used all dstLen
      bytes, T_ETU writes to dst[dstLen].
      
    4. foundin initialized to: "obsolete: 8.5.7"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "10. Objects"
    11. title initialized to:
      Tcl_ExternalToUtf(...dst, dstLen,...) writes to dst[dstLen]
      
    12. type initialized to: "Bug"
  2. Ticket change [ec892f38f6] (rid 103723) by dgp on 2009-10-14 22:03:21:

    1. icomment:
      
      It should also be noted that no bytes (except that
      terminating NUL) will be written unless dstLen is
      at least TCL_UTF_MAX.  
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [7165a92f7d] (rid 100668) by dgp on 2009-10-15 00:31:01:

    1. icomment:
      
      Sorry, I missed a line in Tcl_ExternalToUtf().
      It decrements dstLen before passing to the
      ToUtfProc to account for the byte it needs to
      write NUL into. 
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [3fbc2da0d6] (rid 121515) by dgp on 2009-10-15 00:43:17:

    1. icomment:
      
      no matter what the value of dstLen, writing
      to the byte *dst must work.  That is, don't expect
      dstLen==0 to work.
      
      To get at least one actual character in the output
      buffer, dstLen must have a minimum value of
      TCL_UTF_MAX + 1.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [cce26b342e] (rid 95785) by msofer on 2009-12-11 10:27:21:

    1. assignee changed to: "dgp"
  6. Ticket change [05587391c8] (rid 89048) by dkf on 2009-12-11 17:48:17:

    1. icomment:
      Maybe this just needs to be documented.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"