This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[win32] merge change#886 from maintbranch
[perl5.git] / t / lib / filecopy.t
index 8a23fb6..e4bde30 100755 (executable)
@@ -29,6 +29,7 @@ print "ok 1\n";
 print "not " unless $foo eq "ok 3\n";
 print "ok 2\n";
 
+binmode STDOUT;                        # Copy::copy works in binary mode
 copy "copy-$$", \*STDOUT;
 unlink "copy-$$" or die "unlink: $!";