Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: 2661427b91c15c34c9f02294f4f92c7779c36b268221d7d5305a47b7afdf8d58 (Awaiting Moderator Approval)
Ticket: 34a589f660c1f0bafb5b8963da4e200b2934f91b
could not load ftpd in Tcl 9.0
User & Date: anonymous 2025-07-22 17:28:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. comment changed to:
    In Tcl 8.6.16:
    % package require ftpd
    1.4.1
    
    In Tcl 9.0.2:
    % package require ftpd
    can't read "tcl_platform(user)": no such variable
    % namespace eval ::ftpd {variable contact;set contact "$::tcl_platform(user)@[info hostname]"}
    % package require ftpd
    1.4.1
    
    From help of global:
    This command has no effect unless executed in the context of a proc body.
    
    With the following modification the script completes successfully:
    
    --- ftpd.tcl.org        2024-10-24 18:47:54.000000000 +0900
    +++ ftpd.tcl    2025-07-23 02:19:48.243683100 +0900
    @@ -20,8 +20,7 @@
    
         variable contact
         if {![info exists contact]} {
    -        global tcl_platform
    -       set contact "$tcl_platform(user)@[info hostname]"
    +       set contact "$::tcl_platform(user)@[info hostname]"
         }
    
         variable cwd
    
  4. foundin changed to: "ftpd 1.4.1"
  5. is_private changed to: "0"
  6. login: "anonymous"
  7. mimetype: "text/plain"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "ftpd"
  14. title changed to: "could not load ftpd in Tcl 9.0"
  15. type changed to: "Bug"