Permalink
Browse files

Setup pipe with proper default encodings

Fixes #2071
  • Loading branch information...
1 parent 87f3c61 commit fd61b5f91c3c04ed96af1dbb4e5defea75ebda39 @dbussink dbussink committed Feb 5, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 kernel/common/io19.rb
@@ -970,7 +970,8 @@ def self.pipe(external=nil, internal=nil, options=nil)
connect_pipe(lhs, rhs)
end
- lhs.set_encoding external, internal, options
+ lhs.set_encoding external || Encoding.default_external,
+ internal || Encoding.default_internal, options
lhs.sync = true
rhs.sync = true

0 comments on commit fd61b5f

Please sign in to comment.