diff options
author | oehhar <harald.oehlmann@elmicron.de> | 2015-10-21 20:30:49 (GMT) |
---|---|---|
committer | oehhar <harald.oehlmann@elmicron.de> | 2015-10-21 20:30:49 (GMT) |
commit | c0a4d1371acc97ba5adb5ce5bd6be789a1d7923d (patch) | |
tree | 61321e385f5621c45da01310ff5433686734214c /tests/clock.test | |
parent | 990b376ae11fcf1fa64d1e2f5ccfc39a8052100d (diff) | |
download | tcl-c0a4d1371acc97ba5adb5ce5bd6be789a1d7923d.zip tcl-c0a4d1371acc97ba5adb5ce5bd6be789a1d7923d.tar.gz tcl-c0a4d1371acc97ba5adb5ce5bd6be789a1d7923d.tar.bz2 |
Change "clock format -format %x -locale current" output on msgcat locale change [4a0c163d24]
Diffstat (limited to 'tests/clock.test')
-rw-r--r-- | tests/clock.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/clock.test b/tests/clock.test index 2abeab9..4f69ed3 100644 --- a/tests/clock.test +++ b/tests/clock.test @@ -36931,6 +36931,19 @@ test clock-67.2 {Bug d19a30db57} -body { # error, not segfault tcl::clock::GetJulianDayFromEraYearMonthDay {} 2361222 } -returnCodes error -match glob -result * + +test clock-67.3 {Change %x output on global locale change [Bug 4a0c163d24]} -setup { + package require msgcat + set current [msgcat::mclocale] +} -body { + msgcat::mclocale de_de + set res [clock format 1 -locale current -format %x] + msgcat::mclocale en_uk + lappend res [clock format 1 -locale current -format %x] +} -cleanup { + msgcat::mclocale $current +} -result {01.01.1970 01/01/1970} + test clock-67.3 {Bug d19a30db57} -body { # error, not segfault tcl::clock::GetJulianDayFromEraYearWeekDay {} 2361222 |