Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 39678
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: ron [...] rblasch.org
Cc:
AdminCc:

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



Subject: missing binmode
I think during the latest refactoring a "binmode" was dropped, making mirroring fail on Windows. Usually, this shows up as "Content-length mismatch." The following seems to work for me. --- Protocol.pm.orig Wed Sep 24 19:50:42 2008 +++ Protocol.pm Mon Sep 29 11:43:30 2008 @@ -102,6 +102,7 @@ } elsif (!ref($arg) && length($arg)) { open(my $fh, ">", $arg) || die "Can't write to '$arg': $!"; + binmode($fh); push(@{$response->{handlers}{response_data}}, sub { print $fh $_[3] || die "Can't write to '$arg': $!"; 1;
This issue was also reported in RT#39668 and I've uploaded 5.816 with this fix earlier today.