perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject Re: [mp2] api/sendfile.t on Win32
Date Thu, 01 Jul 2004 16:10:18 GMT
On Thu, 1 Jul 2004, Stas Bekman wrote:

> Randy Kobes wrote:
>
> > Another way to get the test as written
> > to pass is is to open the file in binary mode:
>
> I'm now not sure what's going on win32, <fh> removes \r
> but sendfile not?

That's right - if you open a text file on Win32 without
binmode, the \r are removed, and if binmode is used,
they stay.

[ ... ]
> Adding a short comment why we use binmode should be good
> enough I believe. Go ahead and commit that patch
> (+comment). Thanks Randy.

Thanks - I'll do that.

-- 
best regards,
randy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message