delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/03/06:02:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 3 Jan 2005 12:01:44 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: "od" wrong line endings and byte count
Message-ID: <20050103110144.GD12820@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <41D85ABB DOT DCC5BCD9 AT dessent DOT net> <20050102222745 DOT GG20747 AT trixie DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
In-Reply-To: <20050102222745.GG20747@trixie.casa.cgf.cx>
User-Agent: Mutt/1.4.2i

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 AT 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
> >mounts:
> >[...]
> >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
> >info...
> 
> 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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019