diff options
author | kennykb <kennykb@noemail.net> | 2009-06-09 13:52:36 (GMT) |
---|---|---|
committer | kennykb <kennykb@noemail.net> | 2009-06-09 13:52:36 (GMT) |
commit | e6575a6ef99b3149ccc5dac9a7988bf3192c816b (patch) | |
tree | b2dcc08f29597ef2f2118108a90471a3acb0e559 /library | |
parent | 8e3ae3357d3c7181ae6d3c9e0257fe4a2eaf2f4d (diff) | |
download | tcl-e6575a6ef99b3149ccc5dac9a7988bf3192c816b.zip tcl-e6575a6ef99b3149ccc5dac9a7988bf3192c816b.tar.gz tcl-e6575a6ef99b3149ccc5dac9a7988bf3192c816b.tar.bz2 |
* generic/tclGetDate.y: Fixed a thread safety bug in the generated
* library/clock.tcl: Bison parser (needed a %pure-parser
* tests/clock.test: declaration to avoid static variables).
Discovered that the %pure-parser declaration
allowed for returning the Bison error message
to the Tcl caller in the event of a syntax
error, so did so.
* generic/tclDate.c: bison 2.3
FossilOrigin-Name: 507327cfc11e2d474af2ac5dc7397eb5f7a54e75
Diffstat (limited to 'library')
-rw-r--r-- | library/clock.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/clock.tcl b/library/clock.tcl index 22b7f67..e76fb13 100644 --- a/library/clock.tcl +++ b/library/clock.tcl @@ -13,7 +13,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: clock.tcl,v 1.52 2009/01/03 04:26:49 kennykb Exp $ +# RCS: @(#) $Id: clock.tcl,v 1.53 2009/06/09 13:52:38 kennykb Exp $ # #---------------------------------------------------------------------- @@ -1369,7 +1369,7 @@ proc ::tcl::clock::FreeScan { string base timezone locale } { [dict get $date dayOfMonth] } result] if { $status != 0 } { - return -code error "unable to convert date-time string \"$string\"" + return -code error "unable to convert date-time string \"$string\": $result" } lassign $result parseDate parseTime parseZone parseRel \ |