Artifacts Associated With Ticket 803968ffffffffffffffffffffffffffffffffff
Ticket change [02ae11fd0f] (rid 119684) by revar on 2003-09-10 20:00:43:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized 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 } - foundin initialized to: "obsolete: 8.4.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "revar"
- subsystem initialized to: "31. opt Package"
- title initialized to: "Opt badly guesses type of null default values"
- type initialized to: "Bug"
Ticket change [6a4e328376] (rid 128126) by andreas_kupries on 2003-09-11 03:13:38:
- icomment:
Logged In: YES user_id=75003 A better fix is to use the -strict switch for string is integer.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [1eab0c5bfb] (rid 91013) by dgp on 2003-09-11 03:29:28:
- closedate changed to: "2003-09-10T20:29:28"
- closer changed to: "dgp"
- foundin changed to: "obsolete: 8.5a0"
- icomment:
Logged In: YES user_id=80530 Actually Revision 1.9 only appears in version 0.4.5 of the opt package, which is only part of the HEAD development, that is, Tcl 8.5a0. Commiting [string is ... -strict ...] fix.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"