From: Lavir the Whiolet Date: 2008-11-18T13:12:44+09:00 Subject: [ruby-core:19979] [Bug #760] Net::FTP does not work when "mathn" is loaded. Bug #760: Net::FTP does not work when "mathn" is loaded. http://redmine.ruby-lang.org/issues/show/760 Author: Lavir the Whiolet Status: Open, Priority: Normal Net::FTP starts raising exceptions when "mathn" is loaded. The problem is in Net::FTP#sendport(): when "mathn" is required, "port / 256" starts resulting in Rational rather than in Integer. And "sprintf("%d", port)" results in incorrect "number/256" string (as Rational#to_s() does) rather than just "number". ---------------------------------------- http://redmine.ruby-lang.org