From unknown Thu Jun 19 16:22:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25459: sed bug: native sed-4.3 appends excessive carriage-returns when run in binary mode on windows Resent-From: Michael Builov Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Mon, 16 Jan 2017 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25459 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: 25459@debbugs.gnu.org X-Debbugs-Original-To: bug-sed@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.148458555331192 (code B ref -1); Mon, 16 Jan 2017 16:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jan 2017 16:52:33 +0000 Received: from localhost ([127.0.0.1]:55881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTAWF-00086z-O0 for submit@debbugs.gnu.org; Mon, 16 Jan 2017 11:52:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39017) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cT48D-00057K-Ij for submit@debbugs.gnu.org; Mon, 16 Jan 2017 05:03:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cT487-0004R8-9y for submit@debbugs.gnu.org; Mon, 16 Jan 2017 05:03:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cT487-0004R2-68 for submit@debbugs.gnu.org; Mon, 16 Jan 2017 05:03:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cT482-00088d-Q7 for bug-sed@gnu.org; Mon, 16 Jan 2017 05:03:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cT47y-0004ML-QK for bug-sed@gnu.org; Mon, 16 Jan 2017 05:03:06 -0500 Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]:36720) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cT47y-0004Lv-LZ for bug-sed@gnu.org; Mon, 16 Jan 2017 05:03:02 -0500 Received: by mail-oi0-x22a.google.com with SMTP id u143so97074183oif.3 for ; Mon, 16 Jan 2017 02:03:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3GVTI1F+FqkTvlOfA2YPOWlvAsPgK6GEUnDROpV4UKw=; b=P96Cl4R3f1+wyD8Spp11x9lxuOMNg+X3UdQUsPtqpIfzaSixnfpGwQxzkC2q38V09T /KYWMRqSLsR0wQw53j4+60l3yr1vlcmbFAPhdLwqfR4jMGCQF7u2HSuTj9nM7dZynoBs HLmp9vYONi3TVL3ekxgEsoTKnRAieM3ZkrW3ep73wkmYuVWeLjWEGFnv8vVdW069X+fL TixGH4mIi7ZiSTnKAbFClxKPxeHqRkJqhySZKWJfkm7S3MmFLDyIl08WFUJKU2fiw/E7 Eyi1DVgTpNxmsZl3Opfs7gHTLB7IbQfV4u5aVeA8r9ruj3GSwNAjc2zUa8w7bR9lKTjT dBBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3GVTI1F+FqkTvlOfA2YPOWlvAsPgK6GEUnDROpV4UKw=; b=OXQK3tgNyB/w+GFAH83EVfv+SAhCgcQoV9KCPKWKA6hqJveYxXkb6A1P4jLgyaQN3k EB/Dq3nd1tJHONY1U7RFlndxklZE/Hj0v4ClbhLZi7zsfBwO1nF8VxtkBkwNC12TTmWP aZj1L9KPS6mTFA2fX/wYO8zkClarYbhWy49qP+t5nDIDJ0bNoYij/PNdpQyYZxOrMoZF WrvkuLxEXteqp2YlFUZRhmzsgfqJi7QNo0IXlzg6UxggdHhremCEXY7r8jZ4Vf5oKl2b UKooXWM36S1iKK8Fx3B+hhpxSFaJk22AjTX0KQsKsFe/D8tjuwp75q69lrXl2A+NspOD 1zNA== X-Gm-Message-State: AIkVDXL9O4Sc019JM3yW4KjWgbQ3MEOp5MGO3EY4x7Syp+WzhYLMOh4Hz5qJ8zJa5gs4pj++lV8CMrLJDkEIrw== X-Received: by 10.202.108.5 with SMTP id h5mr16969049oic.29.1484560981611; Mon, 16 Jan 2017 02:03:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.206.11 with HTTP; Mon, 16 Jan 2017 02:03:01 -0800 (PST) From: Michael Builov Date: Mon, 16 Jan 2017 13:03:01 +0300 Message-ID: Content-Type: multipart/mixed; boundary=001a1142dfaef4f1d105463349a2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Mon, 16 Jan 2017 11:52:30 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a1142dfaef4f1d105463349a2 Content-Type: multipart/alternative; boundary=001a1142dfaef4f1cb05463349a0 --001a1142dfaef4f1cb05463349a0 Content-Type: text/plain; charset=UTF-8 Steps to reproduce. First it's needed to build native sed.exe on windows. It's hard, but possible, I've done this: https://github.com/mbuilov/sed-windows/blob/master/sed-4.3-build-patch-howto.txt (Note: don't apply sed-4.3-src.patch in these instructions - it fixes reported bug and build problems with Visual Studio 2008) Now, if we have working native sed.exe, from cmd.exe 1) create a file containing a line terminated with '\n': echo.1> test check "test" contents, dump it: c:\cygwin64\bin\xxd test 00000000: 310d 0a 1.. 2) process file "test" with sed in binary mode: sed\sed.exe -b "" test > test1 dump resulting file "test1": c:\cygwin64\bin\xxd test1 00000000: 310d 0d0a 1... As we can see, there is excessive '0d' in result. To fix this bug, stdout should be set to binary mode, for example by applying attached patch. Best Regards, Michael M. Builov --001a1142dfaef4f1cb05463349a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Steps to reproduce.

=
First it's needed to build native sed.exe on windows.

(Note: don't apply sed-4.3-src.patch in th= ese instructions - it fixes reported bug and build problems with Visual Stu= dio 2008)


Now, if we have working native s= ed.exe, from cmd.exe

1) create a file containing a = line terminated with '\n':

echo.1> test

check &quo= t;test" contents, dump it:

c:\cygwin64\bin\xxd test
00000000= : 310d 0a=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1..


2) process file "test" with sed in binary mo= de:

sed\sed.exe -b "" test > test1

dump resultin= g file "test1":

c:\cygwin64\bin\xxd test1
0000000= 0: 310d 0d0a=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1...


As we can see, there is excessive '0d' in result.


To fix this bug, stdout should be set to binary mode, for example by = applying attached patch.



Best Regards,=
Michael M. Builov
--001a1142dfaef4f1cb05463349a0-- --001a1142dfaef4f1d105463349a2 Content-Type: application/octet-stream; name="sed-4.3-src-stdout.patch" Content-Disposition: attachment; filename="sed-4.3-src-stdout.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ixzws1xr0 ZGlmZiAtTmF1ciBzZWQtNC4zLW9yaWcvc2VkL2V4ZWN1dGUuYyBzZWQtNC4zLXBhdGNoZWQvc2Vk L2V4ZWN1dGUuYwotLS0gc2VkLTQuMy1vcmlnL3NlZC9leGVjdXRlLmMJMjAxNi0xMi0xMyAwMTo1 OTo1OS4wMDAwMDAwMDAgKzAzMDAKKysrIHNlZC00LjMtcGF0Y2hlZC9zZWQvZXhlY3V0ZS5jCTIw MTctMDEtMTMgMTA6MTE6MDYuNTkwMTI1MDAwICswMzAwCkBAIC0yOCw2ICsyOCwxMCBAQAogI2lu Y2x1ZGUgPGVycm5vLmg+CiAjaW5jbHVkZSA8c3RyaW5nLmg+CiAjaW5jbHVkZSA8c3RkbGliLmg+ CisjaWYgZGVmaW5lZCBXSU4zMiB8fCBkZWZpbmVkIF9XSU4zMiB8fCBkZWZpbmVkIF9fQ1lHV0lO X18gXAorICB8fCBkZWZpbmVkIE1TRE9TIHx8IGRlZmluZWQgX19FTVhfXworI2luY2x1ZGUgPGZj bnRsLmg+CisjZW5kaWYKICNpbmNsdWRlIDxzeXMvdHlwZXMuaD4KICNpbmNsdWRlIDxzeXMvc3Rh dC5oPgogI2luY2x1ZGUgInN0YXQtbWFjcm9zLmgiCkBAIC02NDgsNiArNjUyLDEyIEBACiAgICAg ICBpZiAoaW5wdXQtPmZwICYmIHVuYnVmZmVyZWQpCiAgICAgICAgIHNldHZidWYgKGlucHV0LT5m cCwgTlVMTCwgX0lPTkJGLCAwKTsKICAgICAgIG91dHB1dF9maWxlLmZwID0gc3Rkb3V0OworI2lm IGRlZmluZWQgV0lOMzIgfHwgZGVmaW5lZCBfV0lOMzIgfHwgZGVmaW5lZCBfX0NZR1dJTl9fIFwK KyAgfHwgZGVmaW5lZCBNU0RPUyB8fCBkZWZpbmVkIF9fRU1YX18KKyAgICAgIGlmICgndycgPT0g d3JpdGVfbW9kZVswXSAmJiAnYicgPT0gd3JpdGVfbW9kZVsxXSkKKyAgICAgICAgX3NldG1vZGUo X2ZpbGVubyhzdGRvdXQpLCBfT19CSU5BUlkpOworI2Vsc2UKKyNlbmRpZgogICAgIH0KIH0KIAo= --001a1142dfaef4f1d105463349a2-- From unknown Thu Jun 19 16:22:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25459: sed bug: native sed-4.3 appends excessive carriage-returns when run in binary mode on windows Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Wed, 18 Jan 2017 00:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25459 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: Michael Builov , 25459@debbugs.gnu.org Received: via spool by 25459-submit@debbugs.gnu.org id=B25459.148469915123995 (code B ref 25459); Wed, 18 Jan 2017 00:26:02 +0000 Received: (at 25459) by debbugs.gnu.org; 18 Jan 2017 00:25:51 +0000 Received: from localhost ([127.0.0.1]:34171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTe4V-0006Ex-Kq for submit@debbugs.gnu.org; Tue, 17 Jan 2017 19:25:51 -0500 Received: from mail-qk0-f173.google.com ([209.85.220.173]:35544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTe4U-0006Ej-Jz for 25459@debbugs.gnu.org; Tue, 17 Jan 2017 19:25:51 -0500 Received: by mail-qk0-f173.google.com with SMTP id u25so125620390qki.2 for <25459@debbugs.gnu.org>; Tue, 17 Jan 2017 16:25:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=7ZcTvcroyKKkmZ9P7Dx+V0uJgv34odAoF1tqnsvU8pM=; b=p+odXFINwjPvgeV2CQc9oQw+gGlkd1/YTBrcs2V8bKANnoUhmSDxUZeoMtWJI2OhVA 4cQoZLnaGEb9N8UhsDGm45xTInqP65GptYEf/yqcgnEwKMD9aPRqsFhkYHhBHJywFUU8 +J1aMCFDiC8dkr/M6DkT3QRphbZAO0LlM4B5IQeOLWm2QlwVVFbTHYU8hW9PB1xc3jDs U3KvecLKikYADIcGHlhRgOvIuHxsUVMJZdhsG77DBg/QcJQEyOZd05VWzv/xdB7lH8J9 PFQQAwKztSXbWtPfNsvxMYO1tsHBfM9StQt3PyQl9R8ZY6KYU6eYKYRu6hfSuDMszP24 Znhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=7ZcTvcroyKKkmZ9P7Dx+V0uJgv34odAoF1tqnsvU8pM=; b=OieF4VSyC1Jz8hZH5qhhfPftH7xGP8qVqC9B0tK4mWWb0fQTn7zQFcoALvAq2oglpm ksH8qH+dZscEMpw9ZS9dk1Gg8xKfAMX+FO3AMWnKENuvpZpVj2p2fd6zgBLa3ZqrkajJ sbbsDMKvb0xu/6WQL9S3Mr09sTQ2XFz0ZkUxjVvrja8dBnM0IDf+tlM+1XMTANJ1KmH5 pP5xgQsJ9idijz+9Xkw/JL112qhJkC+Ke/5zBYB3/CAfg1RDWaobrtzWpFKpsn5YZi5d EyXzStyW5SpvPVZvl1WnCjkmn+VEJ8/p8L8N7LPDYI103QnxrhyUhQGK0d+Krt+5c263 phpQ== X-Gm-Message-State: AIkVDXKIPIqp+jmZz+ufyVnYzc8cNwyq5siQ+8HaN2NiBQ4rI0hz+JIGn8sBYOR95z8rVw== X-Received: by 10.55.152.4 with SMTP id a4mr369640qke.69.1484699144864; Tue, 17 Jan 2017 16:25:44 -0800 (PST) Received: from disco.erlich.nygenome.org ([69.74.14.178]) by smtp.gmail.com with ESMTPSA id u29sm20175093qki.4.2017.01.17.16.25.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 16:25:44 -0800 (PST) References: From: Assaf Gordon Message-ID: <22ff3c9c-12a7-8d21-49c2-e31adafca043@gmail.com> Date: Tue, 17 Jan 2017 19:25:43 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) Hello, Thank you for the report. I do not have access to MSVC, but I can see similar issues when building with mingw on cygwin64. Before jumping to the fix, I'd like to show what I'm experiencing, because there might be a larger issue here. I'm testing on a Windows R2008 with cygwin64. I've compared 3 binaries (below): sed-4.2.2-cygwin.exe: The default that's installed by cygwin itself. sed-4.3-cygwin-gcc-5.4.0.exe: Built from tarball using cygwin's default gcc compiler. sed-4.3-mingw-64bit.exe: Built from tarball using: ./configure --host=x86_64-w64-mingw32 --disable-nls First, sed-4.2.2 seems to produce incorrect output without "-b": The output file is not set to text mode, and only '\n' is written (without '\r'). second, It seems the new sed-4.3-mingw does output extra '\r', but only if the input is a file (and not stdin). So there's some unclear interplay here (unclear to me). The proposed patch does produce the correct output, but I'd like to verify it's for the right reasons. Lastly, There's also testing needed with in-place writing of files, and adding tests. I hope to get to all of these soon. regards, - assaf $ env printf '1\x0D\x0A' > test $ ./sed-4.2.2-cygwin.exe -b "" < test | od -tx1 -An 31 0d 0a $ ./sed-4.2.2-cygwin.exe -b "" test | od -tx1 -An 31 0d 0a $ ./sed-4.2.2-cygwin.exe "" < test | od -tx1 -An 31 0a $ ./sed-4.2.2-cygwin.exe "" test | od -tx1 -An 31 0a $ ./sed-4.3-cygwin-gcc-5.4.0.exe -b "" < test | od -tx1 -An 31 0d 0a $ ./sed-4.3-cygwin-gcc-5.4.0.exe -b "" test | od -tx1 -An 31 0d 0a $ ./sed-4.3-cygwin-gcc-5.4.0.exe "" < test | od -tx1 -An 31 0d 0a $ ./sed-4.3-cygwin-gcc-5.4.0.exe "" test | od -tx1 -An 31 0d 0a $ ./sed-4.3-mingw-64bit.exe -b "" < test | od -tx1 -An 31 0d 0a $ ./sed-4.3-mingw-64bit.exe -b "" test | od -tx1 -An 31 0d 0d 0a $ ./sed-4.3-mingw-64bit.exe "" < test | od -tx1 -An 31 0d 0a $ ./sed-4.3-mingw-64bit.exe "" test | od -tx1 -An 31 0d 0a From unknown Thu Jun 19 16:22:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25459: sed bug: native sed-4.3 appends excessive carriage-returns when run in binary mode on windows Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Mon, 24 Dec 2018 08:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25459 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: Michael Builov , 25459@debbugs.gnu.org Received: via spool by 25459-submit@debbugs.gnu.org id=B25459.154564053326193 (code B ref 25459); Mon, 24 Dec 2018 08:36:02 +0000 Received: (at 25459) by debbugs.gnu.org; 24 Dec 2018 08:35:33 +0000 Received: from localhost ([127.0.0.1]:34250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gbLi1-0006oK-8w for submit@debbugs.gnu.org; Mon, 24 Dec 2018 03:35:33 -0500 Received: from mail-pl1-f179.google.com ([209.85.214.179]:43718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gbLhz-0006nx-Ew; Mon, 24 Dec 2018 03:35:31 -0500 Received: by mail-pl1-f179.google.com with SMTP id gn14so5354262plb.10; Mon, 24 Dec 2018 00:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=mK+iwY8GEryRiaQMsweK1BgniBQPYbZZML6x74ahBPA=; b=AW3DyAJRY9djblxoJa/cYDobqJNpqdeWG30OZuaqGOynY6ONgCL7Faj9XPY4LXoJKY bR3IA5oNlIqrjkMzkq3fzpnNs+gmVNgOqsSlpcdFINWjFL/WIhSKJDZh0lBV9Pzwkhmi 0MBrN+xXg6iRvuOX6edBOrPaMf9PsRf0kSWlrgTL2Dv6AvKYSMHpnNIUqfaUFFAnQBQE dCuJiK2wAHiokpxaRXM7+G12/VII6Gmuqtky+apF+maFX+sRi7AMYENGlm3KVZO3lONu GLe1C27tVg1Cxab/9fAifTHnqodLoR/XvLmhaXTqVAm67/+/2/NmFgKd3iUfKLqSerTm PMPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mK+iwY8GEryRiaQMsweK1BgniBQPYbZZML6x74ahBPA=; b=Uv64U3j4Hwqu26FP0IV1fr4ZRjJ5jv2ZAiMN2kGJ26GFexJMJCXNfV1pxbm6iu6Shj 8IzxXniN5+4Umq7iERQeTHJ+uVJ3gmOZcGz7oPa4fN6IwoJin+SuQtoLIpIxGDQXPxwq iDNpdkWvJHETFGacT0CDjJNo+l61TBmx7UEi9XSMbvz+gPT4fxGEhuCMjxVSfCmN+/aS KVGKwZNwEHXU0E2UoQqTkKJbQO6H8HVDiwp0Slmr5aYukRGVyga4dcrMwNQdC79j6q/H +7FHBUhVV24tRJY67VMoosGp24WMOThRUUxJoxYNjR4e2htPG8Bbk0sVgKkTRVAdYzqS OqgQ== X-Gm-Message-State: AJcUukdaiLJZGbH3grI0WYBfGC+sutaIE0TBDii4DbrAX0h7Tc972KHs idDuyFB1cV+Y+SNPxfUt3iOZ7gcX X-Google-Smtp-Source: ALg8bN45nnMljOhPNms1j0KiJMzidCH68lP8mHrWvvOtzThcFPnDhChSbJ6um0AAIXAuS+fClNNUpw== X-Received: by 2002:a17:902:a50a:: with SMTP id s10mr11663174plq.278.1545640525194; Mon, 24 Dec 2018 00:35:25 -0800 (PST) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id b5sm76081191pfc.150.2018.12.24.00.35.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Dec 2018 00:35:23 -0800 (PST) From: Assaf Gordon References: <22ff3c9c-12a7-8d21-49c2-e31adafca043@gmail.com> Message-ID: Date: Mon, 24 Dec 2018 01:35:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <22ff3c9c-12a7-8d21-49c2-e31adafca043@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 25459 fixed close 25459 stop Hello, On 2017-01-17 5:25 p.m., Assaf Gordon wrote: > I'm testing on a Windows R2008 with cygwin64. > I've compared 3 binaries (below): > sed-4.2.2-cygwin.exe: > The default that's installed by cygwin itself. > > sed-4.3-cygwin-gcc-5.4.0.exe: > Built from tarball using cygwin's default gcc compiler. > > sed-4.3-mingw-64bit.exe: > Built from tarball using: > ./configure --host=x86_64-w64-mingw32 --disable-nls > sed version 4.7 (released 4 days ago) includes improved and consistent CR/LF handling under cygwin and mingw. Please give it a try (and of course, if there are other issues, do report them). I'm closing this item as "fixed", but discussion can continue by replying to this thread. -assaf