This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Why binary mode?
- From: ericblake at comcast dot net (Eric Blake)
- To: Sven Severus <s dot severus at hima dot com>, cygwin at cygwin dot com
- Date: Fri, 23 Feb 2007 00:30:16 +0000
- Subject: Re: Why binary mode?
> This is, what I expect, after reading the Cygwin FAQ:
> "When processing in text mode, [...] written to the file [...]
> you in fact get "Hello\r\n". Upon reading this combination,
> the \r is removed [...]".
> Why is it in fact not removed when reading with cat?
The FAQ is outdated. Would you care to volunteer to help
maintain it? Reading the NEWS for coreutils, cat was changed
upstream in the last two years or so to always be binary-only,
to more closely comply with POSIX rules that state that
cat must operate on all file types, not just text files.
If cat used default mode, it would corrupt true binary
files that lived in text mounts.
--
Eric Blake
volunteer cygwin coreutils maintainer
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/