diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-06-21 09:29:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-06-21 09:29:18 (GMT) |
commit | c60ee515ee3df4dfa977ba55edda499328b35566 (patch) | |
tree | d1945be4e0a5a658d28200a5bdd472e25cef2b68 /tests/encoding.test | |
parent | 0008ef8d9b26609c300acb627f2bd359a3f5a51d (diff) | |
download | tcl-c60ee515ee3df4dfa977ba55edda499328b35566.zip tcl-c60ee515ee3df4dfa977ba55edda499328b35566.tar.gz tcl-c60ee515ee3df4dfa977ba55edda499328b35566.tar.bz2 |
Fix [048dd20b4171c8da]: cesu-8 encoding fails on \u80
Diffstat (limited to 'tests/encoding.test')
-rw-r--r-- | tests/encoding.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/encoding.test b/tests/encoding.test index 21610a7..6fc3349 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.22 {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.22 {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] |