From dd3a15f77204f9835c4d1e9aae10aa21b9e0d4ca Mon Sep 17 00:00:00 2001 From: hobbs Date: Mon, 26 Jul 2004 21:39:40 +0000 Subject: (io-61.1): create file in binary mode for x-plat --- ChangeLog | 2 ++ tests/io.test | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a461743..87a1f79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ *** 8.4.7 TAGGED FOR RELEASE *** + * tests/io.test (io-61.1): create file in binary mode for x-plat. + 2004-07-25 Pat Thoyts * generic/tclThreadAlloc.c: Moved the tclInt.h include to provide diff --git a/tests/io.test b/tests/io.test index 242b949..a529e61 100644 --- a/tests/io.test +++ b/tests/io.test @@ -12,7 +12,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: io.test,v 1.40.2.5 2004/07/23 16:00:58 dgp Exp $ +# RCS: @(#) $Id: io.test,v 1.40.2.6 2004/07/26 21:39:42 hobbs Exp $ if {[catch {package require tcltest 2}]} { puts stderr "Skipping tests in [info script]. tcltest 2 required." @@ -7111,6 +7111,7 @@ test io-60.1 {writing illegal utf sequences} {openpipe fileevent} { test io-61.1 {Reset eof state after changing the eof char} -setup { set datafile [makeFile {} eofchar] set f [open $datafile w] + fconfigure $f -translation binary puts -nonewline $f [string repeat "Ho hum\n" 11] puts $f = set line [string repeat "Ge gla " 4] -- cgit v0.12