summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
Commit message (Collapse)AuthorAgeFilesLines
* * library/clock.tcl (LocalizeFormat):Kevin B Kenny2009-10-291-1/+5
| | | | | | * tests/clock.test (clock-67.1): Corrected a problem where '%%' followed by a letter in a format group could expand recursively: %%R would turn into %%H:%M:%S. [Bug 2819334]
* * library/clock.tcl (ParseClockScanFormat):Kevin B Kenny2009-10-271-1/+14
| | | | | | | | Corrected a problem where [clock scan] didn't load the timezone soon enough when processing a time format that lacked a complete date. [Bug 2886852] * tests/clock.test (clock-66.1): Added a test case for the above bug.
* * library/clock.tcl (ProcessPosixTimeZone):Kevin B Kenny2009-10-241-1/+11
| | | | | | | | | | | Corrected a regression in the fix to [Bug 2207436] that caused [clock] to apply EU daylight saving time rules in the US. Thanks to Karl Lehenbauer for reporting this regression. * tests/clock.test (clock-52.4): Added a regression test for the above bug. * library/tzdata/Asia/Dhaka: * library/tzdata/Asia/Karachi: New DST rules for Bangladesh and Pakistan. (Olson's tzdata2009o.)
* * generic/tclGetDate.y: Fixed a thread safety bug in the generatedKevin B Kenny2009-06-091-4/+39
| | | | | | | | | | * 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
* make test case work, correct date of commit in ChangeLogKevin B Kenny2009-01-031-2/+3
|
* * library/clock.tcl (tcl::clock::add): Fixed error message formattingKevin B Kenny2009-01-031-1/+9
| | | | | | in the case where [clock add] is presented with a bad switch. * tests/clock.test (clock-65.1) Added a test case for the above problem [Bug 2481670].
* Fallback to European time zone DST rules, when the timezone isnijtmans2008-12-111-1/+23
| | | | between 0 and -12 [Bug 2207436].
* * library/clock.tcl (format, ParseClockScanFormat): Added aKevin B Kenny2008-11-301-1/+14
| | | | | | | [string map] to get rid of namespace delimiters before caching a scan or format procedure [Bug 2362156]. * tests/clock.test (clock-64.[12]): Added test cases for the bug that was tickled by a namespace delimiter inside a format string.
* fix [2021443] inconsistant "wrong # args" messages (follow-up)nijtmans2008-07-211-4/+4
|
* 2006-06-17 Kevin Kenny <kennykb@acm.org>Kevin B Kenny2008-06-171-1/+9
| | | | | | | | | * generic/tclClock.c (ConvertLocalToUTC): * tests/clock.test (clock-63.1): Fixed a bug where the internal ConvertLocalToUTC command segfaulted if passed a dictionary without the 'localSeconds' key. To the best of my knowledge, the bug was not observable in the [clock] command itself.
* * tests/clock.test (clock-33.5, clock-33.5a, clock-33.8, clock-33.8a):Kevin B Kenny2008-04-141-1/+9
| | | | | Added comments to the test that it can fail on a heavily loaded system.
* * doc/clock.n: Corrected minor indentation gaffe in theKevin B Kenny2008-02-271-1/+37
| | | | | | | | | | | | penultimate paragraph. [Bug 1898025] * generic/tclClock.c (ParseClockFormatArgs): Changed to check that the clock value is in the range of a 64-bit integer. [Bug 1862555] * library/clock.tcl (::tcl::clock::format, ::tcl::clock::scan, ::tcl::clock::add, ::tcl::clock::LocalizeFormat): Fixed bugs in caching of localized strings that caused weird results when localized date/time formats were used. [Bug 1902423] * tests/clock.test (clock-61.*, clock-62.1): Regression tests for [Bug 1862555] and [Bug 1902423].
* * generic/tclClock.c (ClockParseformatargsObjCmd):Kevin B Kenny2008-02-061-3/+7
| | | | | | | | | | * library/clock.tcl (::tcl::clock::format): * tests/clock.test (clock-1.0, clock-1.4): Performance enhancements in [clock format] (moving the analysis of $args into C code, holding on to Tcl_Objs with resolved command names, [lassign] in place of [foreach], avoiding [namespace which] for command resolution).
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* * library/clock.tcl (ParseClockScanFormat): Modified code to allowKevin B Kenny2007-08-251-1/+40
| | | | | * tests/clock.test (clock-60.*): case-insensitive matching of time zone and month names. [Bug 1781282]
* Whitespace policing, replacing commas in varargs with constant string ↵Kevin B Kenny2007-04-201-5/+1
| | | | catenation, and fixed an oversight in the fix for NZA time zones.
* Fixed a buglet in recognizing time zone SIERRAKevin B Kenny2007-04-201-7/+3
|
* * tests/clock.test (clock-59.1): Added a regression test forKevin B Kenny2007-04-201-1/+39
| | | | | | military time zone input conversion. [Bug 1586828]. * generic/tclGetDate.y (MilitaryTable): Fixed an ancient bug where the military NZA time zones had the signs reversed [Bug 1586828].
* * tests/clock.test (clock-40.1, clock-58.1): Corrected aKevin B Kenny2007-04-201-3/+3
| | | | | | test case that depended on ":localtime" being able to handle dates prior to the Posix epoch, [Bug 1618445] Added a test case for the dates of the Japanese emperors. [Bug 1637471]
* * doc/clock.n: Corrected a silly error (transposed 'uppercase'Kevin B Kenny2007-04-201-1/+76
| | | | | | | | | | | | | | | and 'lowercase' in clock.n. [Bug 1656002] Clarified that [clock scan] does not recognize a locale's alternative calendar. * library/clock.tcl: Corrected an error in skipping over the %Ey field on input. * library/msgs/ja.msg: * tools/loadICU.tcl: Corrected several localisation faults in the Japanese locale (most notably, incorrect dates for the Emperors' eras). [Bug 1637471]. Many thanks to SourceForge user 'nyademo' for pointing this out and developing a fix. * generic/tclPathObj.c: Corrected a 'const'ness fault that caused bitter complaints from MSVC.
* * generic/tclCompCmds.c: added a cast to silence a compilerKevin B Kenny2007-04-151-1/+9
| | | | | | | | error on VC2005. * library/clock.tcl: Restored unique-prefix matching of keywords on the [clock] command. [Bug 1690041] * tests/clock.test: Added rudimentary test cases for unique-prefix matching of keywords.
* Modified test initialisation to use theKevin B Kenny2007-03-091-2/+8
| | | | | 'loadTestedCommands' function of tcltest to bring in the correct path for the registry library.
* * library/clock.tcl (ReadZoneinfoFile): Added Y2038 compliance toKevin B Kenny2007-03-091-1/+211
| | | | | | the code for version-2 'zoneinfo' files. * tests/clock.test (clock-56.3): Added a test case for Y2038 and 'zoneinfo'.
* * library/clock.tcl: Further tweaks to the Windows time zone tableKevin B Kenny2007-03-081-49/+178
| | | | | | | | | (restoring missing Mexican time zones). Added rudimentary handling of version-2 'zoneinfo' files. Update US DST rules so that zones such as 'EST5EDT' get the correct transition dates. * tests/clock.test: Added rudimentary test cases for 'zoneinfo' parsing. Adjusted several tests that depended on obsolete US DST transition rules.
* New US DST rules on Windows; Olson's tzdata2007cKevin B Kenny2007-03-071-6/+6
|
* * library/clock.tcl (format, scan): corrected wrong # argsMiguel Sofer2006-10-231-3/+3
| | | | | | | | | | | | | | | | | * tests/clock.test (3.1, 34.1): messages to make use of the new rewrite capabilities of [info level] * generic/tcl.h: Lets TEOV update the iPtr->objc/objv * generic/tclBasic.c: fields, except when the (new) flag bit * generic/tclInt.h: TCL_EVAL_NOREWRITE is present. This * generic/tclNamesp.c: causes [info level] to know and use * generic/tclProc.c: ensemble rewrites [Bug 1577492] * tests/namespace.test: ***POTENTIAL INCOMPATIBILITY*** The return value from [info level 0] on interp alias calls is changed: previously returned the target command (including curried values), now returns the source - what was actually called.
* Bug 1567956Kevin B Kenny2006-10-011-3/+4
|
* * library/tzdata: Regenerated, including several new files,Kevin B Kenny2006-08-241-14/+23
| | | | | | | | | from Olson's tzdata2006j. * library/clock.tcl: * tests/clock.test: Removed an early testing hack that allowed loading 'registry' from the build tree rather than an installed one. This is a workaround for [Bug 15232730], which remains open because it's a symptom of a deeper underlying problem.
* Bug 1426279Kevin B Kenny2006-07-311-1/+40
|
* Fixed Bug 1494664Kevin B Kenny2006-07-301-1/+19
|
* Fixed Bug 1505383Kevin B Kenny2006-07-301-1770/+2299
|
* fix for Martin Lemburg's DST conversion bug.Kevin B Kenny2006-04-191-1/+14
| | | | http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/9a8b15a4dfc0b7a0
* * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Allow emptydgp2006-04-051-3/+3
| | | | | strings to be matched by the Tcl_GetIndexFromObj machinery, in the same manner as any other key. [Bug 1464039]
* Use test constraints properly instead of looking in tcl_platformdkf2006-03-211-16/+11
| | | | | Consistent method of calling test constraints, and (try to) move constraint setup to the top of the test file
* Corrected bug in DST transition times for locales that specify transition in ↵Kevin B Kenny2005-11-281-1/+14
| | | | local Standard Time
* fixed test cases for new US DST rules.Kevin B Kenny2005-10-031-1120/+1122
|
* fixed bad clock test, removed duplicated code in Tcl_FinalizeKevin B Kenny2005-08-171-22/+16
|
* bug 1257830Kevin B Kenny2005-08-121-1/+14
|
* Bug 1237907Kevin B Kenny2005-07-151-1/+55
|
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
|
* fixed Bug 1185933Kevin B Kenny2005-04-191-1/+13
|
* bugs 1090413, 1092789 fixedKevin B Kenny2004-12-291-1/+25
|
* * library/clock.tcl: Corrected the regular expressions that matchKevin B Kenny2004-11-301-2/+6
| | | | | a time zone to allow for time zones specified as +HH or -HH. * tests/clock.test: Added regression test case for the above issue.
* remove knownBugs from clock tests by fixing themKevin B Kenny2004-11-031-9/+15
|
* Allow ensembles to rewrite their subcommands' error messages to be moredkf2004-10-291-2/+2
| | | | | | relevant to users. [Patch 1056864] Also patches to core to take advantage of this Also other general cleaning up of Tcl_WrongNumArgs usage
* * tests/clock.test: Correct duplicate test names.dgp2004-10-281-4/+4
| | | | | | * tests/namespace.test: * tests/string.test: * tests/io.test (io-50.4): Use namespace variables.
* fixes for Bug 1054101Kevin B Kenny2004-10-261-1/+43
|
* * library/clock.tcl: Fixed a typo where the fallback time zoneKevin B Kenny2004-10-221-1/+23
| | | | | | | | | became ::localtime instead of :localtime. Fixed a bug where time zone names containing hyphens could not be loaded. Thanks to Todd M. Helfter <tmh@jumpgate.itsp.purdue.edu> for finding these bugs. * tests/clock.test: Added regression test cases that covers both bugs.
* * tests/clock.test (clock-34.*): Removed an antibug that forcedKevin B Kenny2004-10-041-9/+9
| | | | | | comparison of [clock scan] results with the :localtime time zone. Now that [clock scan] uses the current time zone instead, the antibug caused several tests to fail. [Bug 1038554]
* * generic/tclClock.c (TclMktimeObjCmd): Corrected a bad checkKevin B Kenny2004-09-111-1/+21
| | | | | | | | | for error return from 'mktime'. * generic/tclObj.c (Tcl_GetIntFromObj): Corrected a problem where demoting a wide to an int failed on a big-endian machine. [Bug 1026125]. * tests/clock.test (clock-43.1): Added regression test for error return from 'mktime'.