bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eli Zaretskii
Subject: Re: [bug-gawk] Regression: CR characters are not stripped on Windows
Date: Mon, 26 Feb 2018 19:49:12 +0200

> From: Orgad Shaneh <address@hidden>
> Date: Mon, 26 Feb 2018 12:24:01 +0200
> 
> CR characters used to be automatically stripped on Windows (MSYS2
> environment). 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 work with 4.2.0
> awk '/^\r$/ { print "found" }' foo.txt # This works with 4.2.0 and
> doesn't work with 4.1.4
> 
> Bisected to commit 5db38f775d9ba239e125d81dff2010a2ddacb48e:
> (* gawkmisc.c (cygwin_premain0, cygwin_premain2): Remove.
> No longer needed).
> 
> Apparently it's still needed...

Please take this up with the Cygwin folks on the Cygwin list.  They
deliberately removed this code because the idea is to have Cygwin
builds work like the original program does on Unix and GNU/Linux.  And
MSYS2 follows suit after Cygwin, and AFAIK doesn't have its own port
of Gawk.

I don't think we can apply this patch without an explicit consent on
the part of Cygwin developers.

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]