Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix open() with binary flag
Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information
nwellnhof authored and moritz committed Dec 23, 2010
1 parent a5a9364 commit a980da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO.pm
Expand Up @@ -210,7 +210,7 @@ sub open($filename, :$r, :$w, :$a, :$bin) {
unless pir::istrue__IP($PIO) {
fail("Unable to open file '$filename'");
}
$PIO.encoding('utf8');
$PIO.encoding($bin ?? 'binary' !! 'utf8');
IO.new(:$PIO)
}

Expand Down

0 comments on commit a980da4

Please sign in to comment.