summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-01-10 22:34:11 (GMT)
committersebres <sebres@users.sourceforge.net>2017-01-10 22:34:11 (GMT)
commite9177a25c1cbdc5ee7108dbadc69acab26f9abf5 (patch)
tree3d22b87eda29f9f003d56fc38945af2f73790410 /library
parent02b4c1de38afe8c1a068834cbab9ea7f403e0c60 (diff)
downloadtcl-e9177a25c1cbdc5ee7108dbadc69acab26f9abf5.zip
tcl-e9177a25c1cbdc5ee7108dbadc69acab26f9abf5.tar.gz
tcl-e9177a25c1cbdc5ee7108dbadc69acab26f9abf5.tar.bz2
bug fix by match word token (FindWordEnd fixed);
repaired current locale switch
Diffstat (limited to 'library')
-rwxr-xr-xlibrary/clock.tcl8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/clock.tcl b/library/clock.tcl
index f874e4d..ca12f4a 100755
--- a/library/clock.tcl
+++ b/library/clock.tcl
@@ -739,7 +739,7 @@ proc ::tcl::clock::ParseClockFormatFormat {procName format locale} {
# Map away the locale-dependent composite format groups
- EnterLocale $locale
+ set locale [EnterLocale $locale]
# Change locale if a fresh locale has been given on the command line.
@@ -2189,6 +2189,7 @@ proc ::tcl::clock::EnterLocale { locale } {
}
# Select the locale, eventually load it
mcpackagelocale set $locale
+ return $locale
}
#----------------------------------------------------------------------
@@ -3028,7 +3029,7 @@ proc ::tcl::clock::SetupTimeZone { timezone {alias {}} } {
&& [catch { LoadZoneinfoFile $timezone } - opts] } {
# Check may be a legacy zone:
-
+
if { $alias eq {} && ![catch {
set tzname [dict get $LegacyTimeZone [string tolower $timezone]]
}] } {
@@ -4460,6 +4461,9 @@ proc ::tcl::clock::AddDays { days clockval timezone changeover } {
#----------------------------------------------------------------------
proc ::tcl::clock::ChangeCurrentLocale {args} {
+
+ configure -default-locale [lindex $args 0]
+
variable FormatProc
variable LocaleNumeralCache