Skip to content
Browse files

Specify 'binary' encoding for loaded files.

Fix loading of mandelbrot test data.
  • Loading branch information...
1 parent b77264b commit ef33938253c346b5dd1475327225f1d0d4d11de5 @bacek bacek committed Feb 15, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 t/shootout.t
View
2 t/shootout.t
@@ -60,6 +60,7 @@ See L<http://shootout.alioth.debian.org>.
L1:
$P0 = new 'FileHandle'
$P0.'open'(cmd, 'rp')
+ $P0.'encoding'('binary')
$S0 = $P0.'readall'()
$P0.'close'()
.return ($S0)
@@ -69,6 +70,7 @@ See L<http://shootout.alioth.debian.org>.
.param string filename
$P0 = new 'FileHandle'
push_eh _handler
+ $P0.'encoding'('binary')
$S0 = $P0.'readall'(filename)
pop_eh
$P0 = split "\r\n", $S0 # hack from win32

0 comments on commit ef33938

Please sign in to comment.
Something went wrong with that request. Please try again.