summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2019-05-04 22:46:58 (GMT)
committerdgp <dgp@users.sourceforge.net>2019-05-04 22:46:58 (GMT)
commitcb411d059b48bc6986a22ed3c31be0cc9f455277 (patch)
tree29b9e492800d3821aef737517212805da2e8b2fa
parent7ce4c19aa0604ea721e8c983e5e6af1f84532819 (diff)
parent845ae3654831ec237a2f37cf6a8b411ddcd635f7 (diff)
downloadtcl-cb411d059b48bc6986a22ed3c31be0cc9f455277.zip
tcl-cb411d059b48bc6986a22ed3c31be0cc9f455277.tar.gz
tcl-cb411d059b48bc6986a22ed3c31be0cc9f455277.tar.bz2
close fork
-rw-r--r--library/msgs/ja.msg2
-rw-r--r--tests/basic.test12
-rw-r--r--tests/clock.test22
3 files changed, 25 insertions, 11 deletions
diff --git a/library/msgs/ja.msg b/library/msgs/ja.msg
index 76b5fa4..dac690b 100644
--- a/library/msgs/ja.msg
+++ b/library/msgs/ja.msg
@@ -40,5 +40,5 @@ namespace eval ::tcl::clock {
::msgcat::mcset ja LOCALE_DATE_FORMAT "%EY年%m月%d日"
::msgcat::mcset ja LOCALE_TIME_FORMAT "%H時%M分%S秒"
::msgcat::mcset ja LOCALE_DATE_TIME_FORMAT "%EY年%m月%d日 (%a) %H時%M分%S秒 %z"
- ::msgcat::mcset ja LOCALE_ERAS "{-9223372036854775808 西暦 0} {-3061011600 明治 1867} {-1812186000 大正 1911} {-1357635600 昭和 1925} {600220800 平成 1988}"
+ ::msgcat::mcset ja LOCALE_ERAS "{-9223372036854775808 西暦 0} {-3061011600 明治 1867} {-1812186000 大正 1911} {-1357635600 昭和 1925} {600220800 平成 1988} {1556668800 令和 2018}"
}
diff --git a/tests/basic.test b/tests/basic.test
index 1890042..4561667 100644
--- a/tests/basic.test
+++ b/tests/basic.test
@@ -964,6 +964,18 @@ test basic-48.24.$noComp {expansion: empty not canonical list, regression test,
run {list [list {*}{ }] [list {*}[format %c 32]] [list {*}[set a { }]]}
} -result [lrepeat 3 {}] -cleanup {unset -nocomplain a}
+test basic-48.25.$noComp {Bug cc191552c: expansion: empty non-canonical list} -setup {
+ unset -nocomplain ::CRLF
+ set ::CRLF "\r\n"
+} -body {
+ # Force variant that turned up in Bug 2c154a40be as that's externally
+ # noticeable in an important downstream project.
+ run {scan [list {*}$::CRLF]x %c%c%c}
+} -cleanup {
+ unset -nocomplain ::CRLF
+} -result {120 {} {}}
+
+
} ;# End of noComp loop
test basic-49.1 {Tcl_EvalEx: verify TCL_EVAL_GLOBAL operation} testevalex {
diff --git a/tests/clock.test b/tests/clock.test
index b17c543..8d73bf2 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -36707,16 +36707,18 @@ test clock-58.1 {clock l10n - Japanese localisation} {*}{
}
-body {
set trouble {}
- foreach {date jdate} [list \
- 1872-12-31 \u897f\u66a61872\u5e7412\u670831\u65e5 \
- 1873-01-01 \u660e\u6cbb06\u5e7401\u670801\u65e5 \
- 1912-07-29 \u660e\u6cbb45\u5e7407\u670829\u65e5 \
- 1912-07-30 \u5927\u6b6301\u5e7407\u670830\u65e5 \
- 1926-12-24 \u5927\u6b6315\u5e7412\u670824\u65e5 \
- 1926-12-25 \u662d\u548c01\u5e7412\u670825\u65e5 \
- 1989-01-07 \u662d\u548c64\u5e7401\u670807\u65e5 \
- 1989-01-08 \u5e73\u621001\u5e7401\u670808\u65e5 \
- ] {
+ foreach {date jdate} {
+ 1872-12-31 \u897f\u66a61872\u5e7412\u670831\u65e5
+ 1873-01-01 \u660e\u6cbb06\u5e7401\u670801\u65e5
+ 1912-07-29 \u660e\u6cbb45\u5e7407\u670829\u65e5
+ 1912-07-30 \u5927\u6b6301\u5e7407\u670830\u65e5
+ 1926-12-24 \u5927\u6b6315\u5e7412\u670824\u65e5
+ 1926-12-25 \u662d\u548c01\u5e7412\u670825\u65e5
+ 1989-01-07 \u662d\u548c64\u5e7401\u670807\u65e5
+ 1989-01-08 \u5e73\u621001\u5e7401\u670808\u65e5
+ 2019-04-30 \u5e73\u621031\u5e7404\u670830\u65e5
+ 2019-05-01 \u4ee4\u548c01\u5e7405\u670801\u65e5
+ } {
set status [catch {
set secs [clock scan $date \
-timezone +0900 \