delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/08/08/20:49:30

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=ZRLWhKfNSByyBVAYx/U0+MD7BqypgAgVs3I7Ghyp/iK
SDc5BHNcSw+1L6psmHgHhHOLgnRpkbyol6pWo5bsUYonU0jvMLbcnSnyrl85Sc8o
M2di5IKRtSDvAETOGdmXyE8DPNFIhPk7NX1q4NgkE4C7ZgTQtIunUvJG+/JR8qZ4
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
s=default; bh=YM7VcOQhw8xepucv58sBTaHE8vM=; b=T0Ko1b34JVtIU8n+b
VtyMyks0+/HERIXmKmCw6bvbwXSy682/Dfgs90vmyirHZ4xT8DxSE2RYRr27Z3lT
KNdblY0kYzzkilkcgsBQSPY4mnLOUUno+qBTxSQSlx5kENL4k1gYT2oRYDQVQAQr
XUN/0CtjQrnkJUOhdoqsBN46kU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=piping, Hx-languages-length:1101, H*UA:Outlook, H*x:Outlook
X-HELO: mout.gmx.net
From: "Jannick" <thirdedition AT gmx DOT net>
To: <cygwin AT cygwin DOT com>
References: <004401d3109c$2dcb09e0$89611da0$@gmx.net> <598a47fc DOT 5501ca0a DOT 5476f DOT 0305 AT mx DOT google DOT com>
In-Reply-To: <598a47fc.5501ca0a.5476f.0305@mx.google.com>
Subject: RE: gawk 4.1.4: CR separate char for CRLF files
Date: Wed, 9 Aug 2017 02:48:27 +0200
Message-ID: <004701d310a9$372363e0$a56a2ba0$@gmx.net>
MIME-Version: 1.0
X-UI-Out-Filterresults: notjunk:1;V01:K0:XLO9PehRi80=:pdvpwoj9AukIQZDVXqfVwb 3K7LSudFso7J4uh/apDE25L8s6c1OgcNiwoL3P0TpoO2YPMx+Dzbrkpw+a2FVwftchDj5e/sk 2Qz7OqRq7rsG94/rGWtw4wNAyPr+cVuCCjhUEyY/Sp9ECMOYD5JooXNHxbVZ9U/jHiFLtVQGn Pv6toVa056ZkoHs+6sW/wLkp4eReDKNfLCumrlhkIJr/6RmsUYtFC/6G7lOKnZrrEwPHgwCJE +eFUb2wpNhM00/vZgEsqWdCKzisIRWzRYHDth8vPfyjWybSwhLQpj1PfaiNmdHBdeBmUnG7in MImmSz4IUAQmVRC5+JFtR7HvzKuvYtvnZyhBXbzyh7K8m0Xepv3fDTdv/rcarJfCTOVTqnCer dQKghl5f17KaSuvoCcEeOH1Asf2+IZqR/Jf7CTPT+/GuGyo7DSviWXMBD5TF5u+HckLRiCyWg USeFFCFZd5LdbHNiChwNpjzJOc0JpPKWx/R4wGoIBR1n2l3GRHfwjWqspHfosdSTaSr/Fbvwd O09v8thcUge3PdQWHPQFHf0CcCEczOSjk6REMqCoAMDkKGp1PyfPS1AoMqXlg6mrbIoa6OlHH aZnlrRF6lZTKq3nUZWpsYoHdWNzDAuD78FEC+MljKcoRyDgaeHOlTRYj8Spkq29/A9w5ktZxp 7rE3QgF4VAK5YhQJwXOww2Ty7WEHd7Q68jmZdoYFyvRU2YmY7RfWMjrOhldfAcdK3HOh6N57O 6qAZNM9YE+uq4KaZOU6ckAdJ1SoQ2pfhM8T45E86Bm8LUjh1u7GWFjq5/kMki6C7rimZYDAST hCQeTVgdnF5CyDwgoXo8cJcLsh/e9hrfJ+4DiUD9eQn4SmT/9A=
X-IsSubscribed: yes

On Tue, 08 Aug 2017 16:23:40 -0700 (PDT), Steven Penny wrote:
> On Wed, 9 Aug 2017 01:15:08, "Jannick" wrote:
> > the current version 4.1.4 of gawk appears to unpleasantly treat CR for
> > CRLF files, i.e. CR is not gracefully swallowed, but is a separate
character.
> >
> > This makes some, if not all, of the scripts we are working with here
> > useless, unless the input files are converted to LF which certainly is
> > not feasible. IIRC the issue did not show up some versions back.
> >
> > Is this a bug - or am I missing something here?
> 
> Learn to read:
> 
> http://cygwin.com/ml/cygwin/2017-08/msg00033.html

Thanks - quickly done.

The link reveals that CRLF/LF conversion is now mandatory to work with
cygwin's gawk on DOS machines. As far as I can see there is no legacy
solution like for, e.g., sed (-b switch) to have an easy solution for the
issue, especially when invoking gawk from makefiles (piping). 

I consider this bad news while admittedly not fully understanding the whole
background of the move which is not necessary for now. 


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

- Raw text -


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