summaryrefslogtreecommitdiffstats
path: root/tests/encoding.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-08-13 13:32:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-08-13 13:32:54 (GMT)
commitca7bc5823ceb340512edab74ae51d7c918076c51 (patch)
tree86a98f63f31c66195a463a3d130a950795565429 /tests/encoding.test
parent10bda08b575e328c5b6cb5872a2ae4f02ce78cca (diff)
parent5f35d72a7b9c31d100b085b650969e6abe8720ff (diff)
downloadtcl-ca7bc5823ceb340512edab74ae51d7c918076c51.zip
tcl-ca7bc5823ceb340512edab74ae51d7c918076c51.tar.gz
tcl-ca7bc5823ceb340512edab74ae51d7c918076c51.tar.bz2
Fix [2f22a7364d]: cesu-8 encoding gives same result for different strings
Diffstat (limited to 'tests/encoding.test')
-rw-r--r--tests/encoding.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/encoding.test b/tests/encoding.test
index 58f0956..fa237f8 100644
--- a/tests/encoding.test
+++ b/tests/encoding.test
@@ -466,6 +466,9 @@ test encoding-15.30 {UtfToUtfProc -profile strict CESU-8} {
test encoding-15.31 {UtfToUtfProc -profile strict CESU-8 (bytes F0-F4 are invalid)} -body {
encoding convertfrom -profile strict cesu-8 \xF1\x86\x83\x9C
} -returnCodes 1 -result {unexpected byte sequence starting at index 0: '\xF1'}
+test encoding-15.32 {UtfToUtfProc CESU-8 [2f22a7364d]} -body {
+ encoding convertto cesu-8 \U1f600
+} -result \xED\xA0\xBD\xED\xB8\x80
test encoding-16.1 {Utf16ToUtfProc} -body {
set val [encoding convertfrom utf-16 NN]