Skip to content
Tcl Source Code History Of Ticket 2bf9fbcb99
Login

History Of Ticket 2bf9fbcb99

Artifacts Associated With Ticket 2bf9fbcb99

  1. Ticket change [6d120a5b05] (rid 240997) by EricBrunel on 2025-06-06 13:09:02:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      According to [](https://www.tcl-lang.org/software/tcltk/9.0.html ""), section "Notable incompatibilities", tcl 9 is always thread-enabled, and the build options `--enable-threads` / `--disable-threads` have disappeared.
      
      Now in the "tclvars" manual page, it says for the documentation of the array "`tcl_platform`" that if the variable "`threaded`" exists in the array, then the interpreter was compiled with threads enabled. So one would suppose that this variable always exists in tcl 9, since it is always thread-enabled. But it doesn't: with a build of tcl 9.0.1 from the sources, there is no variable "`threaded`" in the array "`tcl_platform`".
      
      This is a problem, since some interfaces with other languages (namely tkinter for Python) rely on the presence of this variable to know if tcl is thread-enabled or not. If tcl is misidentified as not thread-enabled when it actually is, it causes a lot of issues, and sometimes even crashes.
      
    5. foundin initialized to: "v9.0.1"
    6. is_private initialized to: "0"
    7. login: "EricBrunel"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "f6d4a0ab6bf27b9d6f6630658854c2945ae98b10"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "EricBrunel"
    14. subsystem initialized to: "49. Threading"
    15. title initialized to:
      Array "tcl_platform" should always contain entry "threaded" in tcl 9, but doesn't
      
    16. type initialized to: "Bug"
  2. Ticket change [c423d57d81] (rid 241017) by dgp on 2025-06-06 17:28:13:

    1. icomment:
      
      The test for a threaded build that is stable in its behavior
      through Tcl 8.6.* and Tcl 9.* releases is
      
      [tcl::pkgconfig get threaded]
      
      Code that needs to function with both Tcl 8 and Tcl 9 should be
      adapted to make use of it.
      
      The (pretty serious) bug here is the Tcl 9 docs were not updated.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. title changed to:
      Tcl 9 docs outdated regarding tcl_platform(threaded)
      
  3. Ticket change [3efb99445e] (rid 241018) by dgp on 2025-06-06 18:11:41:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      
      The elimination of tcl_platform(threaded) is specified by TIP 599.
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. title changed to:
      Tcl 9 docs outdated regarding tcl_platform(threaded) (TIP 599)
      
  4. Ticket change [c9dce2f83e] (rid 241021) by jan.nijtmans on 2025-06-06 22:36:15:

    1. closedate changed to: "2460833.44184281"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Doc fix [fd1b121aea547484|here]
      
      Thanks for the report, it was indeed 'pretty serious'
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  5. Ticket change [fe4efd29f6] (rid 241029) by oehhar on 2025-06-07 16:00:33:

    1. closedate changed to: "2460834.16705493"
    2. closer changed to: "oehhar"
    3. icomment:
      A 2nd consequence is that the C macro "TCL_THREADS" is also gone.
      Here is a description about this:
      https://core.tcl-lang.org/tcl/wiki?name=Migrating+C+extensions+to+Tcl+9&p
      
    4. login: "oehhar"
    5. mimetype: "text/x-fossil-wiki"
    6. username: "oehhar"