diff options
author | Graham Barr <gbarr@pobox.com> | 2002-02-22 15:11:48 +0000 |
---|---|---|
committer | Graham Barr <gbarr@pobox.com> | 2002-02-22 15:11:48 +0000 |
commit | 501179223bd4c1679ef7d4cbaf9759074733e097 (patch) | |
tree | d6262311d675093ecb5e5e4c4ae791ac52bdec96 | |
parent | 99ee06801774f5b8e4c6d18e1dad661a8ab64647 (diff) | |
download | perl-libnet-501179223bd4c1679ef7d4cbaf9759074733e097.tar.gz |
Net::FTP
- Don't do EBCDIC translation on a binary transfer
-rw-r--r-- | Net/FTP.pm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -22,7 +22,7 @@ use Net::Config; use Fcntl qw(O_WRONLY O_RDONLY O_APPEND O_CREAT O_TRUNC); # use AutoLoader qw(AUTOLOAD); -$VERSION = "2.62"; # $Id: //depot/libnet/Net/FTP.pm#65 $ +$VERSION = "2.63"; # $Id: //depot/libnet/Net/FTP.pm#66 $ @ISA = qw(Exporter Net::Cmd IO::Socket::INET); # Someday I will "use constant", when I am not bothered to much about @@ -729,7 +729,7 @@ sub _store_cmd { last unless $len = sysread($loc,$buf="",$blksize); - if (trEBCDIC) + if (trEBCDIC && $ftp->type ne 'I') { $buf = $ftp->toascii($buf); $len = length($buf); @@ -1714,6 +1714,6 @@ under the same terms as Perl itself. =for html <hr> -I<$Id: //depot/libnet/Net/FTP.pm#65 $> +I<$Id: //depot/libnet/Net/FTP.pm#66 $> =cut |