Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Apparent "bin" means don't set encoding
Rather than "binary".  Wonder if it's possible of needed to be able to change
the encoding of a PIO during its lifetime.  If it should be possible, I don't
think we can revert to "binary" at the moment.
  • Loading branch information
lizmat committed Nov 29, 2014
1 parent c4d1f1f commit 21731f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/PIO.pm
Expand Up @@ -9,7 +9,7 @@ my role PIO {
method !set-PIO-attributes(Mu :$PIO,:$chomp,:$bin,:$encoding,:$nl,:$enc) {
$!chomp = $chomp // True;
nqp::bindattr(self,$?CLASS,'$!PIO',nqp::decont($PIO)); # := doesn't work
self.encoding($bin ?? 'binary' !! $encoding // $enc // 'utf8');
self.encoding($encoding // $enc // 'utf8') unless $bin;
self.nl($nl // "\n");
}

Expand Down

0 comments on commit 21731f5

Please sign in to comment.