Project

General

Profile

Actions

Bug #760

closed

Net::FTP does not work when "mathn" is loaded.

Added by Lavir_the_Whiolet (Lavir the Whiolet) over 15 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
[ruby-core:19979]

Description

=begin
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".
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0