X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4AE10BBF.9040703@comcast.net> Date: Thu, 22 Oct 2009 21:49:51 -0400 From: "P.A.Long" User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: gawk Has Problem With CRLF in Mixed Binary/Text Files References: <4ADFC176 DOT 1060403 AT gmail DOT com> <4AE10A39 DOT 8040005 AT comcast DOT net> In-Reply-To: <4AE10A39.8040005@comcast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 P.A.Long wrote: > Dave Korn wrote: >> t.a.n.s.t.a.a.f.l@ wrote: >> >>> [ ... ] but as can be seen by the attached files, the downloaded gawk >>> executable always changes CRLF to LF, >> >> Is this what you're looking for? >> ***snip*** >> [ ... continues ... ] >> >> >> cheers, >> DaveK >> > > Dave: > > Didn't work (see attached file). Of course, I could have set BINMODE > the wrong way, but I used the -v method to make sure that it got set > before the BEGIN action. If U see anything wrong with what I've done, > please tell me; I'm not too proud to admit silly mistakes! > > And speaking of silly mistakes, I should have looked at the manpage for > gawk *and* at the documentation for Cygwin before I posted; I'll do that > tomorrow. I'll post anything I find; in the meantime, at the suggestion > of David Dyck, I'll be running a2p on my gawk script and using perl > instead. > > Thx, Phil Long > << File: cygwinGawk-withBINMODEset.stillNotWorking >> > > Dave: Sigh ... boy, is my face red; I didn't look close enough at my output. I guess it's always a better idea to check the message *before* U send it then after. Thx, Phil Long -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple