Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't call setinputlinesep on JS
  • Loading branch information
hoelzro authored and pmurias committed Feb 7, 2015
1 parent 045db6d commit ebf56ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/IO.nqp
Expand Up @@ -12,7 +12,9 @@ sub open($filename, :$r, :$w, :$a, :$bin) {
my $mode := $w ?? 'w' !! ($a ?? 'wa' !! 'r');
my $handle := nqp::open($filename, $mode);
#?if !parrot
#?if !js
nqp::setinputlinesep($handle, "\n") if $r;
#?endif
#?endif
nqp::setencoding($handle, 'utf8') unless $bin;
$handle;
Expand Down

0 comments on commit ebf56ea

Please sign in to comment.