summaryrefslogtreecommitdiffstats
path: root/tests/encoding.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-06-23 13:27:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-06-23 13:27:55 (GMT)
commitcbb66412ca40047eab4b424f4f86150f71b622d9 (patch)
tree52a5e0aa2fc7151657345a0a0cbbe4edd3802d23 /tests/encoding.test
parent20fcf335945daf5dedf6f10f940026b681dd7f1b (diff)
parent501954d5aaf9401f977885fd340298baacde61a2 (diff)
downloadtcl-cbb66412ca40047eab4b424f4f86150f71b622d9.zip
tcl-cbb66412ca40047eab4b424f4f86150f71b622d9.tar.gz
tcl-cbb66412ca40047eab4b424f4f86150f71b622d9.tar.bz2
Merge 8.7
Diffstat (limited to 'tests/encoding.test')
-rw-r--r--tests/encoding.test17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/encoding.test b/tests/encoding.test
index bdebad9..08c00f2 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]
@@ -807,7 +822,7 @@ test encoding-28.0 {all encodings load} -body {
llength $name
}
return $count
-} -result [expr {[info exists ::tcl_precision] ? 87 : 86}]
+} -result [expr {[info exists ::tcl_precision] ? 88 : 87}]
runtests