Tcl Source Code

View Ticket
Login
Ticket UUID: c5825d32351bfc06ce6ded6e786374fc9550184c
Title: tip 430 install.tcl/SUPPORT_BUILTIN_ZIP_INSTALL
Type: Bug Created on: 2024-10-11 03:21:34
Submitter: juliannoble2 Assigned to: nobody
Subsystem: - New Builtin Commands Severity: Minor
Priority: 5 Medium Last modified: 2024-10-11 03:21:34
Status: Open Closed by: nobody
Resolution: None Closed on:
Version:
Description:
library/install.tcl has the following switch statement

 switch [lindex $argv 1] {
   mkzip {
     zipfs mkzip {*}[lrange $argv 2 end]
   }
   mkzip {
     zipfs mkimg {*}[lrange $argv 2 end]
   }
   default {
     ::practcl::[lindex $argv 1] {*}[lrange $argv 2 end]
    }

 }

I guess the second switch case should read mkimg instead of mkzip.

I was interested to test the effects of this install feature - but building on windows with SUPPORT_BUILTIN_ZIP_INSTALL defined that results in an error

tclZipfs.c:6494:36: error: use of undeclared identifier 'argvPtr'
 archive = Tcl_WCharToUtfDString((*argvPtr)[1], TCL_INDEX_NONE, &ds);