delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 25 Aug 2008 11:19:23 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: awk -v BINMODE=rw |
Message-ID: | <20080825091923.GW29104@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <200808212334 DOT m7LNYjqb022682 AT tigris DOT pounder DOT sol DOT net> |
MIME-Version: | 1.0 |
In-Reply-To: | <200808212334.m7LNYjqb022682@tigris.pounder.sol.net> |
User-Agent: | Mutt/1.5.16 (2007-06-09) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 Aug 21 18:34, Tom Rodman wrote: > Hello: > > awk is removing the \r below: > > ~ $ date;uname -sr > Thu Aug 21 18:26:08 CDT 2008 > CYGWIN_NT-5.0 1.5.25(0.156/4/2) > ~ $ printf "HI\r\n"| awk -v BINMODE=rw '{print}'|/bin/od -Ad -c -toC > 0000000 H I \n > 110 111 012 > 0000003 > ~ $ cygcheck -f /bin/gawk > gawk-3.1.6-1 I can reproduce it, but it looks like potentially an issue in Cygwin. With 1.5.25 \r\n is always converted to \n, with Cygwin 1.7 \r\n is never converted. I'll have a look this week. 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |