summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2024-03-17 12:13:43 (GMT)
committersebres <sebres@users.sourceforge.net>2024-03-17 12:13:43 (GMT)
commit9e8125626b33a41e76d1696bb2278431970fdc10 (patch)
tree4ccec71bf9dfc18eccb576374b2618625ad2dcf8 /library
parentc4333327b2ce34eda6e780c94340932d5427e7ec (diff)
downloadtcl-9e8125626b33a41e76d1696bb2278431970fdc10.zip
tcl-9e8125626b33a41e76d1696bb2278431970fdc10.tar.gz
tcl-9e8125626b33a41e76d1696bb2278431970fdc10.tar.bz2
review: registry loaded by first usage, no mc command needed (uses mcget instead, for merged dicts)
Diffstat (limited to 'library')
-rw-r--r--library/clock.tcl16
1 files changed, 4 insertions, 12 deletions
diff --git a/library/clock.tcl b/library/clock.tcl
index 4c2529a..b518128 100644
--- a/library/clock.tcl
+++ b/library/clock.tcl
@@ -16,17 +16,9 @@
#
#----------------------------------------------------------------------
-# msgcat 1.7 features are used. We need access to the Registry on Windows
-# systems.
+# msgcat 1.7 features are used.
-uplevel \#0 {
- package require msgcat 1.7
- if { $::tcl_platform(platform) eq {windows} } {
- if { [catch { package require registry 1.1 }] } {
- namespace eval ::tcl::clock [list variable NoRegistry {}]
- }
- }
-}
+package require msgcat 1.7
# Put the library directory into the namespace for the ensemble so that the
# library code can find message catalogs and time zone definition files.
@@ -60,7 +52,6 @@ namespace eval ::tcl::clock {
# Import the message catalog commands that we use.
namespace import ::msgcat::mclocale
- proc mc {args} { tailcall ::msgcat::mcn [namespace current] {*}$args }
namespace import ::msgcat::mcpackagelocale
}
@@ -923,7 +914,8 @@ proc ::tcl::clock::GetSystemTimeZone {} {
set timezone [configure -system-tz]
if { $timezone ne "" } {
return $timezone
- } elseif { $::tcl_platform(platform) eq {windows} } {
+ }
+ if { $::tcl_platform(platform) eq {windows} } {
set timezone [GuessWindowsTimeZone]
} elseif { [file exists /etc/localtime]
&& ![catch {ReadZoneinfoFile \