diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-07-12 11:38:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-07-12 11:38:08 (GMT) |
commit | 56aabaf032b4af6a32c3aac8906804cd33bec298 (patch) | |
tree | 56bbc444e4e598ab113945584e3ab4c9b7688018 /tests/utfext.test | |
parent | 38d334f8f2161cba6634b26b7f4fa7f6b1b7811f (diff) | |
download | tcl-56aabaf032b4af6a32c3aac8906804cd33bec298.zip tcl-56aabaf032b4af6a32c3aac8906804cd33bec298.tar.gz tcl-56aabaf032b4af6a32c3aac8906804cd33bec298.tar.bz2 |
Consider 3 more types as special in TclDuplicatePureObj(). Updated comment for the reason why.
Diffstat (limited to 'tests/utfext.test')
-rw-r--r-- | tests/utfext.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utfext.test b/tests/utfext.test index 70ef2bc..ce50666 100644 --- a/tests/utfext.test +++ b/tests/utfext.test @@ -75,8 +75,8 @@ test xx-bufferoverflow {buffer overflow Tcl_ExternalToUtf} -body { # nospace {} abcÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ test TableToUtf-bug-5be203d6ca {Bug 5be203d6ca - truncated prefix in table encoding} -body { - set src \x82\x4f\x82\x50\x82 - lassign [testencoding Tcl_ExternalToUtf shiftjis $src {start} 0 16 srcRead dstWritten charsWritten] buf + set src \x82\x4f\x82\x50\x82 + lassign [testencoding Tcl_ExternalToUtf shiftjis $src {start} 0 16 srcRead dstWritten charsWritten] buf set result [list [testencoding Tcl_ExternalToUtf shiftjis $src {start} 0 16 srcRead dstWritten charsWritten] $srcRead $dstWritten $charsWritten] lappend result {*}[list [testencoding Tcl_ExternalToUtf shiftjis [string range $src $srcRead end] {end} 0 10 srcRead dstWritten charsWritten] $srcRead $dstWritten $charsWritten] } -result [list [list multibyte 0 \xEF\xBC\x90\xEF\xBC\x91\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF] 4 6 2 [list ok 0 \xC2\x82\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF] 1 2 1] |