Skip Menu |

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

Report information
The Basics
Id: 40013
Status: resolved
Priority: 0/
Queue: perl-ldap

People
Owner: Nobody in particular
Requestors: ishigaki [...] cpan.org
Cc:
AdminCc:

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



Subject: t/05dsml,t fails on Win32 due to the lack of "binmode"
Hi. t/05dsml,t of perl-ldap-0.38 fails on Win32 due to the lack of "binmode". The attached patch would fix the issue. Thanks. Kenichi Ishigaki
Subject: perl-ldap-0.38.patch
diff -ur perl-ldap-0.38/t/05dsml.t perl-ldap-0.38-patched/t/05dsml.t --- perl-ldap-0.38/t/05dsml.t Sun Sep 21 23:23:47 2008 +++ perl-ldap-0.38-patched/t/05dsml.t Tue Oct 14 00:05:42 2008 @@ -28,7 +28,7 @@ @entry = $ldif->read; open(FH,">$outfile1"); - +binmode FH; my $dsml = Net::LDAP::DSML->new(output => \*FH,pretty_print => 1); $dsml->write_entry($_) for @entry; @@ -40,6 +40,7 @@ # (don't rely on unpatched XML::SAX::Writer [e.g. Debian]) { open(FH, "+<$outfile1"); +binmode FH; local $/; # slurp mode my $txt = <FH>;
Subject: Re: [rt.cpan.org #40013] t/05dsml,t fails on Win32 due to the lack of "binmode"
Date: Tue, 14 Oct 2008 10:23:33 -0500
To: bug-perl-ldap [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
Thanks, patch applied and in the next branch see http://git.goingon.net/?p=perl-ldap.git;a=shortlog;h=refs/heads/next