Skip to content
Tcl Source Code History Of Ticket 1689385
Login

History Of Ticket 1689385

Artifacts Associated With Ticket 1689385

  1. Ticket change [59de4677ca] (rid 118039) by dgp on 2007-03-27 17:47:01:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The documentation for
      
        Tcl_SetObjLength(objPtr, newLength)
      
      suggests that it will leave
      objPtr->bytes pointing to a buffer
      of at least length newLength+1,
      that it will write a null byte
      at objPtr->bytes[newLength], and
      that it will leave objPtr->length
      with the new value of newLength.
      
      This is often true.
      
      However, when objPtr points to
      a pure unicode object with at least
      one multibyte character, or with
      some other history that leaves
      objPtr->bytes == NULL and
      stringPtr->hasUnicode != 0, then
      Tcl_SetObjLength() manipulates
      the unicode representation, growing
      it to hold at least newLength *characters*
      (not bytes).  It's possible that a
      caller expecting the documentation to be
      true might get a nasty surprise.
      
      The ability to grow the unicode rep
      is useful.  Perhaps that functionality
      should have its own API, rather than
      having undocumented, semi-magical modes
      of operation?
      
      
    4. foundin initialized to: "obsolete: 8.5a6"
    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_SetObjLength documentation incomplete"
    12. type initialized to: "Bug"
  2. Ticket change [c0004b393d] (rid 102338) by msofer on 2007-09-13 08:00:32:

    1. assignee changed to: "dgp"
    2. foundin changed to: "obsolete: 8.5a7"
    3. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      I do not feel qualified for this one, returning to sender.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. username: "msofer"
  3. Ticket change [c88eaa3f6e] (rid 122122) by dgp on 2007-10-31 23:52:07:

    1. priority changed to: "9 Immediate"
  4. Ticket change [0781303e2a] (rid 89413) by dgp on 2008-03-12 22:41:24:

    1. priority changed to: "5 Medium"