delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/12/05:52:53

X-Spam-Check-By: sourceware.org
Date: Wed, 12 Apr 2006 11:52:40 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: awk -v BINMODE=rw '{print}' # future sed revs binary too?
Message-ID: <20060412095240.GB10758@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <200604051824 DOT k35IOLTm023813 AT tigris DOT pounder DOT sol DOT net> <200604061304 DOT k36D4dqU030525 AT tigris DOT pounder DOT sol DOT net> <200604061335 DOT k36DZmv1030619 AT tigris DOT pounder DOT sol DOT net> <20060411091929 DOT GA31165 AT calimero DOT vinschen DOT de> <200604112021 DOT k3BKLZ1w016971 AT tigris DOT pounder DOT sol DOT net>
Mime-Version: 1.0
In-Reply-To: <200604112021.k3BKLZ1w016971@tigris.pounder.sol.net>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Apr 11 15:21, Tom Rodman wrote:
> On Tue 4/11/06 11:19 +0200 cygwin AT cygwin DOT com wrote:
> > Use dos2unix/unix2dos in scripts.
> 
> So the change to sed is intentional, I assume.  I always thought 'sed' should be
> binary by default, but for years the cygwin version was not.
> 
> Will you reassure me that sed will stay this way?  :->

Yes, no worries.  The fact that sed was textmode was a bug in the sed
sources.  Sed ships its own version of getline which special cases
Windows and DOS and, unfortunately, Cygwin, to always read its input in
textmode.  The new sed is only binmode because it's now using the Cygwin
(better: newlib) version of getline, which does not add a textmode hack.


Corinna

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

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