summaryrefslogtreecommitdiffstats
path: root/tests/msgcat.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-09-13 13:09:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-09-13 13:09:17 (GMT)
commit5b68c7d62cf67a00bd6c5e97f1da7d7fd194ef00 (patch)
treef65a60f84405550827659ce94dd04cea28fee548 /tests/msgcat.test
parent98237732ef4cd07a63f32adcdbcdb4d0b9099773 (diff)
downloadtcl-5b68c7d62cf67a00bd6c5e97f1da7d7fd194ef00.zip
tcl-5b68c7d62cf67a00bd6c5e97f1da7d7fd194ef00.tar.gz
tcl-5b68c7d62cf67a00bd6c5e97f1da7d7fd194ef00.tar.bz2
Fix msgcat-0.7 when running tests outside of the build tree (part of Bug #3549770)
Diffstat (limited to 'tests/msgcat.test')
-rw-r--r--tests/msgcat.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/msgcat.test b/tests/msgcat.test
index d75bf8e..0edb1d2 100644
--- a/tests/msgcat.test
+++ b/tests/msgcat.test
@@ -56,6 +56,13 @@ namespace eval ::msgcat::test {
set result [string tolower \
[msgcat::ConvertLocale $::tcl::mac::locale]]
} else {
+ if {([info sharedlibextension] == ".dll")
+ && ![catch {package require registry}]} {
+ # Windows and Cygwin have other ways to determine the
+ # locale when the environment variables are missing
+ # and the registry package is present
+ continue
+ }
set result c
}
}