Skip to content
Tcl Source Code History Of Ticket a97680cbed
Login

History Of Ticket a97680cbed

Artifacts Associated With Ticket a97680cbed

  1. Ticket change [8cadf12d2f] (rid 216739) by chrstphrchvz on 2023-07-25 20:57:43:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      The comment documenting <tt>Tcl_FSJoinToPath()</tt> says:
      <pre>
       *	The objects in the array given will temporarily have their refCount
       *	increased by one, and then decreased by one when this function exits
       *	(which means if they had zero refCount when we were called, they will
       *	be freed).
      </pre>
      
      This appears to be outdated. It has been documented in 8.7 ([62834021ed4c], [https://www.tcl-lang.org/man/tcl8.7/TclLib/FileSystem.html#M47]) that the reference counts of values in the <tt>objv</tt> array must be nonzero. Those reference counts used to be temporarily incremented by <tt>Tcl_ListObjAppendElement()</tt>, but that was removed in [55c8c6c1552f], and <tt>TclJoinPath()</tt> currently seems to leave reference counts of inputs as-is.
      
    5. foundin initialized to: "8.6.13"
    6. is_private initialized to: "0"
    7. login: "chrstphrchvz"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "chrstphrchvz"
    14. subsystem initialized to: "37. File System"
    15. title initialized to: "Tcl_FSJoinToPath(): outdated comment"
    16. type initialized to: "Bug"