summaryrefslogtreecommitdiffstats
path: root/tests/encoding.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-06-21 10:31:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-06-21 10:31:04 (GMT)
commit93418b66de62d1e16c0ba57808b26bc60f60dbb7 (patch)
treedb1a4fc4bfcd825fc2628431c79285fdbbad1f34 /tests/encoding.test
parent39f2cb055678135b76be96c7e204aef54a429e11 (diff)
parentcdae95cf66d9d27eec969ba28abb4a3ba87ea5d6 (diff)
downloadtcl-93418b66de62d1e16c0ba57808b26bc60f60dbb7.zip
tcl-93418b66de62d1e16c0ba57808b26bc60f60dbb7.tar.gz
tcl-93418b66de62d1e16c0ba57808b26bc60f60dbb7.tar.bz2
Merge 8.7
Diffstat (limited to 'tests/encoding.test')
-rw-r--r--tests/encoding.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/encoding.test b/tests/encoding.test
index ed37928..ecc439d 100644
--- a/tests/encoding.test
+++ b/tests/encoding.test
@@ -429,6 +429,21 @@ test encoding-15.21 {UtfToUtfProc CESU-8 noncharacter} {
binary scan $y H* z
list [string length $y] $z
} {3 efbfbf}
+test encoding-15.22 {UtfToUtfProc CESU-8 bug [048dd20b4171c8da]} {
+ set y [encoding convertto cesu-8 \x80]
+ binary scan $y H* z
+ list [string length $y] $z
+} {2 c280}
+test encoding-15.23 {UtfToUtfProc CESU-8 bug [048dd20b4171c8da]} {
+ set y [encoding convertto cesu-8 \u100]
+ binary scan $y H* z
+ list [string length $y] $z
+} {2 c480}
+test encoding-15.24 {UtfToUtfProc CESU-8 bug [048dd20b4171c8da]} {
+ set y [encoding convertto cesu-8 \u3FF]
+ binary scan $y H* z
+ list [string length $y] $z
+} {2 cfbf}
test encoding-16.1 {Utf16ToUtfProc} -body {
set val [encoding convertfrom utf-16 NN]