summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2009-06-09 13:52:36 (GMT)
committerKevin B Kenny <kennykb@acm.org>2009-06-09 13:52:36 (GMT)
commit77651df52750776dce287030cc8a1d2c0bf61385 (patch)
treeb2dcc08f29597ef2f2118108a90471a3acb0e559 /library
parenta7d705dbe689171d9fe8c79b7fc19bb2ef0ae7a1 (diff)
downloadtcl-77651df52750776dce287030cc8a1d2c0bf61385.zip
tcl-77651df52750776dce287030cc8a1d2c0bf61385.tar.gz
tcl-77651df52750776dce287030cc8a1d2c0bf61385.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
Diffstat (limited to 'library')
-rw-r--r--library/clock.tcl4
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 \