From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92955 invoked by alias); 15 Feb 2019 20:31:26 -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 92676 invoked by uid 89); 15 Feb 2019 20:31:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Hx-languages-length:1186 X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (217.72.192.75) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Feb 2019 20:31:23 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MD9Gh-1gldKn25o1-0094vF for ; Fri, 15 Feb 2019 21:31:08 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 0A6F9A80749; Fri, 15 Feb 2019 21:31:08 +0100 (CET) Date: Fri, 15 Feb 2019 20:35:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: textmode for stdout, what is "correct" now? Message-ID: <20190215203108.GN2702@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <739ed5ce-6902-d702-e152-65dc2c1da667@ssi-schaefer.com> <20190214162002.GA4950@calimero.vinschen.de> <6aa280c2-4769-0772-91d9-c73a3a3d9680@ssi-schaefer.com> <20190215102251.GA2702@calimero.vinschen.de> <20190215124844.GE2702@calimero.vinschen.de> <6d02258d-115d-135c-1404-1b02eec34045@ssi-schaefer.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9aCKuHbn5v2q3RVc" Content-Disposition: inline In-Reply-To: <6d02258d-115d-135c-1404-1b02eec34045@ssi-schaefer.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-02/txt/msg00202.txt.bz2 --9aCKuHbn5v2q3RVc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1148 On Feb 15 19:07, Michael Haubenwallner wrote: > On 2/15/19 1:48 PM, Corinna Vinschen wrote: > > On Feb 15 13:03, Michael Haubenwallner wrote: > >> On 2/15/19 11:22 AM, Corinna Vinschen wrote: > >>> On Feb 15 08:56, Michael Haubenwallner wrote: > >>>> On 2/14/19 5:20 PM, Corinna Vinschen wrote: > >>>>> On Feb 14 16:23, Michael Haubenwallner wrote: > >>>>>> Hi, > >>>>>> [SNIP] > >>>> Down the line in their BIO module they do use setmode(fd, O_TEXT), > >>>> which is the one that does introduce the \r, as far as I know. > >>> > >>> This one is not so nice. Somebody should tell upstream we only > >>> want explicit O_BINARY these days, but no explicit O_TEXT. >=20 > To me it sounds strange to use the one but not the other: >=20 > If we don't want O_TEXT at all, isn't O_BINARY obsolete as well, > so the advise should be to use neither - just like real *nix? No, on text mode mounts O_BINARY makes sure that the result is actually a binary file. > A consequence then might be to deprecate (or even remove) them > from the public API header files. As long as we have text mode mounts, no. Corinna --=20 Corinna Vinschen Cygwin Maintainer --9aCKuHbn5v2q3RVc Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxnIYsACgkQ9TYGna5E T6AXEhAAn4CJiz9HmA3GufrN+OdKrMTIewif86Jt6YfFTwWPI1eP/neAYF5xBqtb V6jWOe5G70aUKKLFkCUUWxZek3KQG+CBfSHxESZWgNqD3SMzvrBk5kJk1v2AJ7Rm E51B7cE3FAUTWOxyNcO0ZdaQjibKzEOGQLA3NdQp6gkSi/wMClI77bqDwzw0MstR Pvvr+Ap+EDdzwsHXW/YyU3tUg8Fl3rVi6YtEjrhBBlHqy2cW16Lgw0xzgk0Nr/IL 9ryLbh1g7rsYQ6aUC+n5qxpFGTaYKBsoQfW1S+nDiT2Cw4M+5uElvuXdzc7kctZD wDX/WvqHhejYmxFxw4FxeUgKjD8pN18CgGB1zir8l+KUh2fuKNjrP0kKREqQM86p sTKEj6mE4SAh6xDNUqlT6BWkujksRP8bpdJ42XbmPcXWa+HV9c5VJhAkyTJf+DIq 9XWs2OB7OCGpkyy/OyzA3aEXU7f9EAds8d/RjEh36bFOlOHS8N22biDQ9IshBBm1 fxfp0hxgolzI1EOgV/+8HtQS2GlZoTJAG8+tR1nVDSYZ1+k5iWJpc9GHpclXQ7rY Da2dPKfB+nyS+62IaoBpx2PVD3lPbcyANK3p1xo012JBtf9Dp4oE4sgeCEMLRC/m eekYvEd1QH/nLY3w4TgJmqGAlciKFKngIz77xbpo5/PcjSTRxvQ= =b4Vc -----END PGP SIGNATURE----- --9aCKuHbn5v2q3RVc--