|
2009-07-29
| ||
| 19:42 | • Ticket [2481670fff] clock add error status still Closed with 4 other chang... artifact: 6fd7ff3c59 user: dkf | |
|
2009-01-24
| ||
| 22:38 | • Ticket [2481670fff]: 6 changes artifact: 206718872c user: dkf | |
|
2009-01-03
| ||
| 11:52 | • Closed ticket [2481670fff]. artifact: 65e9138af2 user: kennykb | |
|
2009-01-02
| ||
| 18:02 | • Ticket [2481670fff]: 2 changes artifact: cd3ba637bc user: ferrieux | |
| 01:25 | • New ticket [2481670fff]. artifact: 8289b2c467 user: talvo | |
[clock add] error
Closed2481670fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 17 years ago
Descriptionplain2009-01-02 01:25:37
The code for the [clock add] command (in [tcl::clock::add]) eferences a variable by the wrong name when it tries to throw an error for an incorrect flag. For example:
clock add 1231862400 1 year -foo bar
can't read "flag": no such variable
while executing
"list CLOCK badSwitch $flag"
(procedure "::tcl::clock::add" line 37)
invoked from within
"clock add 1231862400 1 year -foo bar"
The problem is about 37 lines into tcl::clock::add - in the line
return -code error -errorcode [list CLOCK badSwitch $flag] "bad switch \"$flag\", must be -gmt, -locale or -timezone"
both instances of $flag should be $a. From http://wiki.tcl.tk/22183
ferrieux Ticket [2481670fff]: 2 changes
[History diff]2009-01-02 18:02:46
kennykbplain2009-01-03 11:52:54
Thanks for the report, and for the fix. Patch applied (and test case added) in both the HEAD and core-8-5-branch.
dkfplain2009-01-24 22:38:18
allow_comments - 1 data_type - 210894
dkfplain2009-07-29 19:42:25
IP - Comment Removed: 130.88.1.31
Log in (anonymous is fine) to add a comment.