Subject: Fix msgcat-0.7 when running tests outside of the build tree (part of Bug #3549770)

From: "jan.nijtmans" <[email-masked]>
Date: Thu, 13 Sep 2012 13:09:17 +0000

---
 tests/msgcat.test | 7 +++++++
 1 file changed, 7 insertions(+)

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
 	    }
 	}
-- 
cgit v0.12