summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2015-10-21 20:30:49 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2015-10-21 20:30:49 (GMT)
commit775b09cb001aae11f753654ae22365f295f56fe8 (patch)
tree61321e385f5621c45da01310ff5433686734214c /tests
parent0a228666ae8b3189ae92ff7624263de1455c24ff (diff)
downloadtcl-775b09cb001aae11f753654ae22365f295f56fe8.zip
tcl-775b09cb001aae11f753654ae22365f295f56fe8.tar.gz
tcl-775b09cb001aae11f753654ae22365f295f56fe8.tar.bz2
Change "clock format -format %x -locale current" output on msgcat locale change [4a0c163d24]
Diffstat (limited to 'tests')
-rw-r--r--tests/clock.test13
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