Bug #2291: Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
http://redmine.ruby-lang.org/issues/show/2291

起票者: Akira Matsuda
ステータス: Open, 優先度: Normal
カテゴリ: lib, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2009-09-29 trunk 25153) [i386-darwin9.8.0]

% cat ftp_binary.rb
require 'net/ftp'
f = Net::FTP.new
f.binary = true

% ruby ftp_binary.rb
/Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:224:in `putline': undefined method `write' for nil:NilClass (NoMethodError)
	from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:291:in `block in voidcmd'
	from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'
	from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:290:in `voidcmd'
	from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:146:in `binary='
	from ftp_binary.rb:3:in `<main>'


----------------------------------------
http://redmine.ruby-lang.org