diff options
author | hobbs <hobbs@noemail.net> | 2001-06-28 01:10:14 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2001-06-28 01:10:14 (GMT) |
commit | 38f9c2d6ffed9bee21909e443f9291904d510d31 (patch) | |
tree | ad78a6f3f9022c60ffbdeac7973dab98b18e8b6d /tests/subst.test | |
parent | 73b930e1a6bd8d216b00bec5bf112450051a634b (diff) | |
download | tcl-38f9c2d6ffed9bee21909e443f9291904d510d31.zip tcl-38f9c2d6ffed9bee21909e443f9291904d510d31.tar.gz tcl-38f9c2d6ffed9bee21909e443f9291904d510d31.tar.bz2 |
* tests/subst.test:
* generic/tclUtf.c (Tcl_UtfBackslash): Corrected backslash
handling of multibyte utf-8 chars. [Bug #217987]
FossilOrigin-Name: 7eba85bf31a83498778ba7f6ea29b16595eda024
Diffstat (limited to 'tests/subst.test')
-rw-r--r-- | tests/subst.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/subst.test b/tests/subst.test index 1ebceb7..21b0d7e 100644 --- a/tests/subst.test +++ b/tests/subst.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: subst.test,v 1.7 2000/11/01 22:13:39 hobbs Exp $ +# RCS: @(#) $Id: subst.test,v 1.8 2001/06/28 01:10:15 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -38,6 +38,11 @@ test subst-2.3 {simple strings} { test subst-3.1 {backslash substitutions} { subst {\x\$x\[foo bar]\\} } "x\$x\[foo bar]\\" +test subst-3.2 {backslash substitutions with utf chars} { + # 'j' is just a char that doesn't mean anything, and \344 is 'ä' + # that also doesn't mean anything, but is multi-byte in UTF-8. + list [subst \j] [subst \\j] [subst \\344] [subst \\\344] +} "j j \344 \344" test subst-4.1 {variable substitutions} { set a 44 |