diff options
author | das <das> | 2006-09-10 17:04:40 (GMT) |
---|---|---|
committer | das <das> | 2006-09-10 17:04:40 (GMT) |
commit | e14e8f4fa399e18ca5749dd5484d5080cbac9b1f (patch) | |
tree | 14386549e4ac29f29ddb85a1d1e1b03bbcef3ba5 /tests/msgcat.test | |
parent | 609385ccb9bbf225a216eca52a988116f59dc44f (diff) | |
download | tcl-e14e8f4fa399e18ca5749dd5484d5080cbac9b1f.zip tcl-e14e8f4fa399e18ca5749dd5484d5080cbac9b1f.tar.gz tcl-e14e8f4fa399e18ca5749dd5484d5080cbac9b1f.tar.bz2 |
* library/msgcat/msgcat.tcl (msgcat::Init): on Darwin, add fallback of
* tests/msgcat.test: default msgcat locale to
* unix/tclUnixInit.c (TclpSetVariables): current CFLocale identifier
if available (via private ::tcl::mac::locale global, set at interp init
when on Mac OS X 10.3 or later with CoreFoundation).
* unix/tcl.m4: add caching to new SC_TCL_* macros for MT-safe wrappers.
* unix/configure: autoconf-2.13
Diffstat (limited to 'tests/msgcat.test')
-rw-r--r-- | tests/msgcat.test | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/msgcat.test b/tests/msgcat.test index 0edec23..ea4814d 100644 --- a/tests/msgcat.test +++ b/tests/msgcat.test @@ -12,7 +12,7 @@ # Note that after running these tests, entries will be left behind in the # message catalogs for locales foo, foo_BAR, and foo_BAR_baz. # -# RCS: @(#) $Id: msgcat.test,v 1.11.2.2 2004/08/13 21:45:16 dgp Exp $ +# RCS: @(#) $Id: msgcat.test,v 1.11.2.3 2006/09/10 17:04:41 das Exp $ package require Tcl 8.2 if {[catch {package require tcltest 2}]} { @@ -54,11 +54,15 @@ namespace eval ::msgcat::test { foreach setVars [PowerSet $envVars] { set result [string tolower [lindex $setVars 0]] if {[string length $result] == 0} { - set result c + if {[info exists ::tcl::mac::locale]} { + set result [string tolower $::tcl::mac::locale] + } else { + set result c + } } - test msgcat-0.$count { - locale initialization from environment variables - } -setup { + test msgcat-0.$count [list \ + locale initialization from environment variables $setVars \ + ] -setup { variable var foreach var $envVars { catch {variable $var $::env($var)} |