Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 02ae11fd0fff3f43cf74cc8d3acd4b7b43141f2b
Ticket: 803968ffffffffffffffffffffffffffffffffff
Opt badly guesses type of null default values
User & Date: revar on 2003-09-10 20:00:43
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    In optparse.tcl, there was an optimization made between 
    CVS file version 1.8 and 1.9 that replaced the old regexp 
    number pattern check with a [string is integer] check.  
    Unfortunately, this will return true for null strings.  This 
    breaks all code that uses opt0.4 with null string default 
    values without specifying them as strings with -string.
    
    The fix for this is to add a short test at the beginning of proc 
    OptGuessType in optparse.tcl:
    
    if {$arg == "" } {
        return string
    }
    
    
    
  4. foundin changed to: "obsolete: 8.4.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "revar"
  9. subsystem changed to: "31. opt Package"
  10. title changed to: "Opt badly guesses type of null default values"
  11. type changed to: "Bug"