summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorericm <ericm>2000-07-06 21:05:01 (GMT)
committerericm <ericm>2000-07-06 21:05:01 (GMT)
commit003f25f16aa9d093b468f4c74a1eece63c929c88 (patch)
treef41e6aac70ba45c195c73c507ba94d6f19bf127e /tests
parentbe8ba4515aaf9da7893bcb0930ca1965e0602cb3 (diff)
downloadtcl-003f25f16aa9d093b468f4c74a1eece63c929c88.zip
tcl-003f25f16aa9d093b468f4c74a1eece63c929c88.tar.gz
tcl-003f25f16aa9d093b468f4c74a1eece63c929c88.tar.bz2
* tests/msgcat.test:
* library/msgcat1.0/msgcat.tcl: Applied patch from Christian Krone, to provide extended args support for msgcat::unknown, which is used for strings without a known translation in the current locale [Bug: 5984].
Diffstat (limited to 'tests')
-rw-r--r--tests/msgcat.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/msgcat.test b/tests/msgcat.test
index 04e570b..cdb42ac 100644
--- a/tests/msgcat.test
+++ b/tests/msgcat.test
@@ -12,7 +12,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: msgcat.test,v 1.8 2000/04/11 21:16:18 ericm Exp $
+# RCS: @(#) $Id: msgcat.test,v 1.9 2000/07/06 21:05:02 ericm Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -401,6 +401,9 @@ test msgcat-7.2 {::msgcat::mc, extra args go through to format} {
test msgcat-7.3 {::msgcat::mc, errors from format are propagated} {
catch {::msgcat::mc format3 "good test"}
} 1
+test msgcat-7.4 {::msgcat::mc, extra args are given to unknown} {
+ ::msgcat::mc "this is a %s" "good test"
+} "this is a good test"
# Reset the locale
::msgcat::mclocale $oldlocale