summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-07 12:27:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-07 12:27:27 (GMT)
commit7cf2f6d10229f721d4fa1f7d09b134fae613ebae (patch)
tree16854e63805550197db22c8b49d8757e958a731e /tests/io.test
parent75afeeeffad7351134cc1d839d667ef7afca3579 (diff)
parented61282e224676021dcacdc2981b7c7ffaf6cbbf (diff)
downloadtcl-7cf2f6d10229f721d4fa1f7d09b134fae613ebae.zip
tcl-7cf2f6d10229f721d4fa1f7d09b134fae613ebae.tar.gz
tcl-7cf2f6d10229f721d4fa1f7d09b134fae613ebae.tar.bz2
Better error-message "illegal byte sequence" when trying to read from invalid/incomplete UTF-8
Diffstat (limited to 'tests/io.test')
-rw-r--r--tests/io.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/io.test b/tests/io.test
index 18f1baf..e26c97f 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -8478,7 +8478,7 @@ test io-60.1 {writing illegal utf sequences} {fileevent testbytestring} {
# cut of the remainder of the error stack, especially the filename
set result [lreplace $result 3 3 [lindex [split [lindex $result 3] \n] 0]]
list $x $result
-} {1 {gets {} catch {error writing "stdout": invalid argument}}}
+} {1 {gets {} catch {error writing "stdout": illegal byte sequence}}}
test io-61.1 {Reset eof state after changing the eof char} -setup {
set datafile [makeFile {} eofchar]