Subject: | Proposed fix in Net::SFTP::Foreign |
Date: | Fri, 08 Feb 2008 09:14:57 -0500 |
To: | bug-Net-SFTP-Foreign [...] rt.cpan.org |
From: | Patrick Frazer <frazer [...] beacon.com> |
Hello,
I have been using Net::SFTP::Foreign 1.34 under ActiveState Perl
5.8.8_822. (On Windows, obviously) The module has performed flawlessly
except that any uploaded binary files are corrupted. I fixed this
problem by adding 'binmode $fh;' in the put() function at line 1586 of
Foreign.pm. This solves the corruption problem. There is already a
call to 'binmode' in the get() function, line 1406.
Please consider including this change in future versions of
Net::SFTP::Foreign.
Thank you.
Patrick Frazer
frazer@beacon.com