From: John Firebaugh Date: 2012-01-21T08:03:03+09:00 Subject: [ruby-core:42197] [ruby-trunk - Bug #5917][Open] IO with :binmode => true should use binary encoding Issue #5917 has been reported by John Firebaugh. ---------------------------------------- Bug #5917: IO with :binmode => true should use binary encoding https://bugs.ruby-lang.org/issues/5917 Author: John Firebaugh Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0] =begin Binary mode sets the external encoding to binary when specified via the mode string, but not when specified by the :binmode option. IO.new(0, 'wb').external_encoding #=> # IO.new(0, 'w', :binmode => true).external_encoding #=> nil The expected behavior is that :binmode => true should also set the external encoding to binary. =end -- http://bugs.ruby-lang.org/