This is the mail archive of the
mailing list for the Cygwin project.
Re: "od" wrong line endings and byte count
On Jan 2 17:27, Christopher Faylor wrote:
> On Sun, Jan 02, 2005 at 12:34:03PM -0800, Brian Dessent wrote:
> >David Christensen wrote:
> >> When I create a file using notepad:
> >> Look at it using "wc":
> >> dpchrist@p42800e:~$ wc textfile.txt
> >> 2 14 76 textfile.txt
> >> And then look at it with Cygwin "od", I see:
> >There is nothing wrong here. You installed cygwin with text mode
> >This means that when a cygwin program reads a file with CRLF endings it
> >is translated to LF line endings that all unix tools expect. You want
> >binary mounts if this is not what you desire. See the FAQ for more
> I think that this is a regression of "od", though. It probably should use
> binmode by default.
od from coreutils-5.2.1-4 has a sticky tape applied to solve that problem.
But actually it is a Cygwin problem with setmode() using the wrong REENT
pointer. I've fixed that in CVS.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:email@example.com
Red Hat, Inc.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html