Skip Menu |

This queue is for tickets about the Net-SFTP-Foreign CPAN distribution.

Report information
The Basics
Id: 33014
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Net-SFTP-Foreign

People
Owner: Nobody in particular
Requestors: frazer [...] beacon.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Hi, thank you for the report. I have just uploaded a new version to CPAN with the bug corrected. Cheers, - Salva On Fri Feb 08 09:15:22 2008, frazer@beacon.com wrote: Show quoted text
> > 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 >