This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Perl, text files, & \r
Gerrit P. Haase wrote:
> Christopher Rath schrieb am 2001-07-07, 23:13:
>
>
>>solution: use of the 'binmode' command.
>>
>
> Would it help to set the environment settings CYGWIN=binmode ?
Doubt it. CYGWIN=binmode only affects the line-end-handling behavior of
pipes. Not file IO.
>
> [...]
>
>>I think this should be in the Cygwin FAQ. Why this works can be found on
>>pp. 53-55 and 147 of "Programming Perl 2nd Ed."
>>
>
> Is it a cygwin issue or more a perl one?
> You can choice at setup time between 'unix(==binmode)' and
> 'windows(==textmode)' mode.
> You could mount with '-b' for binmode.
This part (file-system mounting) refers to line-end-handling behavior of
file IO, not pipes. This is the likely culprit here.
> It should work as it does on unixlike systems if you setup
> with binmode as default.
binmode drive mounting. Yes.
--Chuck
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/