summaryrefslogtreecommitdiffstats
path: root/tests/encoding.test
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2024-08-09 02:53:11 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2024-08-09 02:53:11 (GMT)
commit13ee7872b779ea11a07831d6309e4b61b847e790 (patch)
tree9683a398991b1da76a001aac79dcf295dc56c195 /tests/encoding.test
parente5a1a48100681b0060895b313231576a2862594e (diff)
downloadtcl-13ee7872b779ea11a07831d6309e4b61b847e790.zip
tcl-13ee7872b779ea11a07831d6309e4b61b847e790.tar.gz
tcl-13ee7872b779ea11a07831d6309e4b61b847e790.tar.bz2
Proposed fix for crash [201c7a3aa6] - crash on non-BMP
Diffstat (limited to 'tests/encoding.test')
-rw-r--r--tests/encoding.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/encoding.test b/tests/encoding.test
index e18e0f1..58f0956 100644
--- a/tests/encoding.test
+++ b/tests/encoding.test
@@ -1176,7 +1176,17 @@ test encoding-bug-66ffafd309-2-replace {Bug [66ffafd309] - invalid DBCS} -body {
encoding convertfrom -profile replace jis0208 \x78\x79
} -result \uFFFD\uFFFD
+test encoding-bug-201c7a3aa6-strict {Crash encoding non-BMP to iso2022} -body {
+ encoding convertto -profile strict iso2022 \U1f600
+} -result {unexpected character at index 0: 'U+01F600'} -returnCodes error
+test encoding-bug-201c7a3aa6-replace {Crash encoding non-BMP to iso2022} -body {
+ encoding convertto -profile replace iso2022 \U1f600
+} -result ?
+
+test encoding-bug-201c7a3aa6-tcl8 {Crash encoding non-BMP to iso2022} -body {
+ encoding convertto -profile tcl8 iso2022 \U1f600
+} -result ?
# cleanup
namespace delete ::tcl::test::encoding