From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55694 invoked by alias); 9 Aug 2017 00:49:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 51314 invoked by uid 89); 9 Aug 2017 00:48:56 -0000 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 Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.15.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Aug 2017 00:48:33 +0000 Received: from ODTOSH2015 ([84.161.254.106]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MFdPZ-1dtq2721sj-00EhlL for ; Wed, 09 Aug 2017 02:48:30 +0200 From: "Jannick" To: References: <004401d3109c$2dcb09e0$89611da0$@gmx.net> <598a47fc.5501ca0a.5476f.0305@mx.google.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, 09 Aug 2017 00:49:00 -0000 Message-ID: <004701d310a9$372363e0$a56a2ba0$@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2017-08/txt/msg00093.txt.bz2 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