X-Spam-Check-By: sourceware.org Date: Wed, 12 Apr 2006 11:52:40 +0200 From: Corinna Vinschen 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/