diff options
author | dgp <dgp@users.sourceforge.net> | 2016-07-16 20:50:03 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-07-16 20:50:03 (GMT) |
commit | 6f07c7ae05169ceba8daa453c192a7511cdf78ab (patch) | |
tree | 1c403a9a100ba30967e7e094590a6af65ea220d0 /tests/io.test | |
parent | 5fce2d6fcdbb4dcfaf883bece8154b866450c010 (diff) | |
parent | 9015a7b063d96172512c54d84395d2b260d4d330 (diff) | |
download | tcl-6f07c7ae05169ceba8daa453c192a7511cdf78ab.zip tcl-6f07c7ae05169ceba8daa453c192a7511cdf78ab.tar.gz tcl-6f07c7ae05169ceba8daa453c192a7511cdf78ab.tar.bz2 |
merge 8.6
Diffstat (limited to 'tests/io.test')
-rw-r--r-- | tests/io.test | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/io.test b/tests/io.test index 6b6ad6d..9573cc6 100644 --- a/tests/io.test +++ b/tests/io.test @@ -4285,6 +4285,13 @@ test io-33.4 {Tcl_Gets with long line} { close $f set x } {abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ} +set f [open $path(test3) w] +puts -nonewline $f "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" +puts -nonewline $f "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" +puts -nonewline $f "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" +puts -nonewline $f "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" +puts $f "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" +close $f test io-33.5 {Tcl_Gets with long line} { set f [open $path(test3)] set x [gets $f y] @@ -7141,7 +7148,12 @@ test io-52.10 {TclCopyChannel & encodings} {fcopy} { file size $path(utf8-fcopy.txt) } 5 -test io-52.11 {TclCopyChannel & encodings} {fcopy} { +test io-52.11 {TclCopyChannel & encodings} -setup { + set out [open $path(utf8-fcopy.txt) w] + fconfigure $out -encoding utf-8 -translation lf + puts $out "\u0410\u0410" + close $out +} -constraints {fcopy} -body { # binary to encoding => the input has to be # in utf-8 to make sense to the encoder @@ -7157,7 +7169,7 @@ test io-52.11 {TclCopyChannel & encodings} {fcopy} { close $out file size $path(kyrillic.txt) -} 3 +} -result 3 test io-52.12 {coverage of -translation auto} { file delete $path(test1) $path(test2) |