Project

General

Profile

This project is closed and read-only.

Actions

Bug #760

closed

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

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

Added by Lavir_the_Whiolet (Lavir the Whiolet) almost 18 years ago. Updated over 15 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: PDF Atom