From: Stefan Rusterholz Date: 2012-05-06T20:29:19+09:00 Subject: Bug in IO::pipe with regards to encodings? Hi Given the following code: in_io,out_io = IO.pipe("binary", "binary") I would expect both in_io and out_io to give 'binary' on all encodings, yet I get binary only on in_io's external_encoding: in_io.internal_encoding # => nil in_io.external_encoding # => # out_io.internal_encoding # => nil out_io.external_encoding # => # Some diagnostic information: RUBY_DESCRIPTION # => "ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]" Encoding.default_internal # => # Encoding.default_external # => # I'd consider this a bug. But before reporting, I'd like to get the input from others. What do you think, is this a bug? If not, why not? Best regards Stefan, aka apeiros