summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2009-06-09 13:52:58 (GMT)
committerKevin B Kenny <kennykb@acm.org>2009-06-09 13:52:58 (GMT)
commit84b4642f23e9ce612ea65bb135c9ffadfe21352d (patch)
tree03dfbf68bc437cb16e8388c65e7bcc12cd0f030d /library
parent78c6dc0737b02640bdefa7f048a3ae3ad50fc725 (diff)
downloadtcl-84b4642f23e9ce612ea65bb135c9ffadfe21352d.zip
tcl-84b4642f23e9ce612ea65bb135c9ffadfe21352d.tar.gz
tcl-84b4642f23e9ce612ea65bb135c9ffadfe21352d.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 8a78c39..5e9601d 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.47.2.5 2009/01/03 04:36:53 kennykb Exp $
+# RCS: @(#) $Id: clock.tcl,v 1.47.2.6 2009/06/09 13:52:58 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 \