diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-06-01 10:02:17 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-06-01 10:02:17 +0000 |
commit | e5a04bd3608b6c4e986b3e42b05c62a441470936 (patch) | |
tree | bb861efc294aac18cf40286d92c940045e309a8a /t | |
parent | 8a9ea0d956809003bdac40891c7ead513a562f63 (diff) | |
download | perl-e5a04bd3608b6c4e986b3e42b05c62a441470936.tar.gz |
Make filecomp test work on CRLF platforms by adding binmode.
p4raw-id: //depot/perlio@10363
Diffstat (limited to 't')
-rw-r--r-- | t/lib/filecomp.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/lib/filecomp.t b/t/lib/filecomp.t index b841d872de..9e0751be80 100644 --- a/t/lib/filecomp.t +++ b/t/lib/filecomp.t @@ -50,6 +50,7 @@ print "ok 8\n"; { my $fh; open ($fh, "<README") or print "not "; + binmode($fh); print "not " unless compare($fh,"README") == 0; print "ok 9\n"; close $fh; @@ -59,6 +60,7 @@ print "ok 8\n"; { my $fh; open ($fh, "<README") or print "not "; + binmode($fh); print "not " unless compare_text($fh,"TEST") == 1; print "ok 10\n"; close $fh; @@ -80,6 +82,7 @@ eval { local $/; #slurp my $fh; open($fh,'README'); + binmode($fh); my $data = <$fh>; print $tfh $data; close($fh); |