Re: [bug-gawk] gawk Regression: CR characters are not stripped on Windows

2018-03-05 Thread arnold
Andrey Repin wrote: > Greetings, arn...@skeeve.com! > > > Corinna Vinschen wrote: > > >> Hi Arnold, > >> > >> On Mar 5 06:36, arn...@skeeve.com wrote: > >> > Is there a way to distinguish cygwin from msys at compile time? > >> > I would not object to restoring the behavior for msys only. > >> >

Re: [bug-gawk] gawk Regression: CR characters are not stripped on Windows

2018-03-05 Thread Vince Rice
> On Mar 5, 2018, at 2:58 PM, Andrey Repin wrote: > > Greetings, > >> Corinna Vinschen wrote: >> >>> Hi Arnold, >>> >>> On Mar 5 06:36, arn...@skeeve.com wrote: Is there a way to distinguish cygwin from msys at compile time? I would not object to restoring the behavior for msys only

Re: [bug-gawk] gawk Regression: CR characters are not stripped on Windows

2018-03-05 Thread Andrey Repin
Greetings, arn...@skeeve.com! > Corinna Vinschen wrote: >> Hi Arnold, >> >> On Mar 5 06:36, arn...@skeeve.com wrote: >> > Is there a way to distinguish cygwin from msys at compile time? >> > I would not object to restoring the behavior for msys only. >> >> __MSYS__ vs. __CYGWIN__ >> >> >> Corin

Re: [bug-gawk] gawk Regression: CR characters are not stripped on Windows

2018-03-05 Thread arnold
Corinna Vinschen wrote: > Hi Arnold, > > On Mar 5 06:36, arn...@skeeve.com wrote: > > Is there a way to distinguish cygwin from msys at compile time? > > I would not object to restoring the behavior for msys only. > > __MSYS__ vs. __CYGWIN__ > > > Corinna > > -- > Corinna Vinschen

Re: [bug-gawk] gawk Regression: CR characters are not stripped on Windows

2018-03-05 Thread Corinna Vinschen
Hi Arnold, On Mar 5 06:36, arn...@skeeve.com wrote: > Is there a way to distinguish cygwin from msys at compile time? > I would not object to restoring the behavior for msys only. __MSYS__ vs. __CYGWIN__ Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygw

Re: [bug-gawk] gawk Regression: CR characters are not stripped on Windows

2018-03-05 Thread arnold
Is there a way to distinguish cygwin from msys at compile time? I would not object to restoring the behavior for msys only. Thanks, Arnold Orgad Shaneh wrote: > Hi, > > Cross-posting per Eli Zaretskii's request. > > CR characters used to be automatically stripped on Windows (MSYS2 and > Cygwin

Re: gawk Regression: CR characters are not stripped on Windows

2018-02-27 Thread Eric Blake
[urrgh - Cygwin's list policy in supplying reply-to makes it difficult to reply-to-all] On 02/27/2018 01:22 AM, Orgad Shaneh wrote: Hi, Cross-posting per Eli Zaretskii's request. CR characters used to be automatically stripped on Windows (MSYS2 and Cygwin environments). This is broken in 4.2.

Re: gawk Regression: CR characters are not stripped on Windows

2018-02-27 Thread Brian Inglis
On 2018-02-27 00:22, Orgad Shaneh wrote: > Cross-posting per Eli Zaretskii's request. > CR characters used to be automatically stripped on Windows (MSYS2 and > Cygwin environments). This is broken in 4.2.0. Cygwin binary mounts treat files as on Unix. You missed all the discussions in early 2017

Re: gawk Regression: CR characters are not stripped on Windows

2018-02-27 Thread Steven Penny
On Tue, 27 Feb 2018 12:13:37, Orgad Shaneh wrote: I see. This is however not true for MSYS2. Then I guess we will just keep this as a patch for MSYS2, which is already merged[1]? [1] https://github.com/Alexpux/MSYS2-packages/commit/c81d882b9838f8245603c7a8d5f8845eeadd6c2a yes, it is sad that

Re: gawk Regression: CR characters are not stripped on Windows

2018-02-27 Thread Houder
On Tue, 27 Feb 2018 09:22:18, Orgad Shaneh wrote: > Cross-posting per Eli Zaretskii's request. > > CR characters used to be automatically stripped on Windows (MSYS2 and > Cygwin environments). This is broken in 4.2.0. 4.2.0 (change was made in 4.1.4) Something for you to study (while Corin

Re: gawk Regression: CR characters are not stripped on Windows

2018-02-27 Thread Orgad Shaneh
On Tue, Feb 27, 2018 at 11:48 AM, Andrey Repin wrote: > Greetings, Orgad Shaneh! > >> 1. The gawk info page states that: > >>> Under MS-Windows, > ^^^ >>> 'gawk' (and many other text programs) silently >>> translates end-of-line '\r\n' to '\n' on input and '\n' to '\r\n' on >>> out

Re: gawk Regression: CR characters are not stripped on Windows

2018-02-27 Thread Andrey Repin
Greetings, Orgad Shaneh! > 1. The gawk info page states that: >> Under MS-Windows, ^^^ >> 'gawk' (and many other text programs) silently >> translates end-of-line '\r\n' to '\n' on input and '\n' to '\r\n' on >> output. > and on Feb 8 the following section was added: >> Recent v

gawk Regression: CR characters are not stripped on Windows

2018-02-26 Thread Orgad Shaneh
Hi, Cross-posting per Eli Zaretskii's request. CR characters used to be automatically stripped on Windows (MSYS2 and Cygwin environments). This is broken in 4.2.0. Minimal example: echo -en "foo\r\n\r\nbar\r\n" > foo.txt awk '/^$/ { print "found" }' foo.txt # This worked with 4.1.4 and doesn't w