From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ssd1.hungerhost.com (ssd1.hungerhost.com [107.161.31.220]) by sourceware.org (Postfix) with ESMTPS id E1A2A3858404 for ; Tue, 15 Aug 2023 10:01:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E1A2A3858404 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=callow.im Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=callow.im DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=callow.im; s=default; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: Mime-Version:Content-Type:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uEXfqIKAG/oX986lQnf2Uccbi2Sc0fO25kJbUwUrowk=; b=d1e3fBl/KAT0tvjXwpPKoHI+LH WuekTcBgZwJLPm0D31xvbCK7OEM0cyZxf2LHOL36VdK8WZl62ThC+RIFFUqnIRWqDJ4R6dVfeNp3I GvOJpTyVvSsI7vHgGtJOBFlY6FrjkfJzAyzcqr1UqVgc/WMxzyHiV78lZEX6jPmi1WeY=; Received: from [175.177.138.186] (port=59270 helo=smtpclient.apple) by ssd1.hungerhost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1qVqs3-00041o-Fc; Tue, 15 Aug 2023 06:01:53 -0400 Content-Type: multipart/signed; boundary="Apple-Mail=_40EEDD7B-003B-45CD-8C25-571C5D881176"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Pipes truncating data in cygwin from main and cygwin-3_4-branch From: =?utf-8?B?44Kt44Oj44Ot44Km44CA44Oe44O844Kv?= In-Reply-To: Date: Tue, 15 Aug 2023 19:01:39 +0900 Cc: cygwin@cygwin.com Message-Id: <711F7C15-6A2C-47B2-B8FF-A02FB703A808@callow.im> References: <13B0370E-B61A-44B9-A885-5FF1B8F4AC5F@callow.im> <20230815093042.4c5fd1034837098aaff45e10@nifty.ne.jp> <20230815154219.f03a40176f281f598ab0ffc4@nifty.ne.jp> To: Takashi Yano X-Mailer: Apple Mail (2.3731.700.6) X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ssd1.hungerhost.com X-AntiAbuse: Original Domain - cygwin.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - callow.im X-Get-Message-Sender-Via: ssd1.hungerhost.com: authenticated_id: github@callow.im X-Authenticated-Sender: ssd1.hungerhost.com: github@callow.im X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --Apple-Mail=_40EEDD7B-003B-45CD-8C25-571C5D881176 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Aug 15, 2023, at 18:09, =E3=82=AD=E3=83=A3=E3=83=AD=E3=82=A6=E3=80=80= =E3=83=9E=E3=83=BC=E3=82=AF wrote: >=20 > ... >=20 > I will put some tracing in `test-pipe.c++` to see whether it is = currently buffering or not. Indeed the seekg is returning success so my code uses the path where it = is expected to work. If I force buffering, the test passes. I tried the same tests in PowerShell instead of Git for Windows Bash. = There too seekg() reports success. If I force buffering tellg() after = isp->seekg(0, ios_base::end) reports 171,926 bytes vs a file size of = 170,512 which is strange. Without buffering tellg() reports 8192 bytes. = Basically the same behaviour as with G4W bash except there tellg() = reports 170,512 bytes and 126,976 bytes respectively. >=20 > We=E2=80=99ve only tested non-Cygwin consumers. When the author of the = above GitHub issue comment was testing on Cygwin he compiled the = consumer with mingw-w64 g++. >=20 If Cygwin consumers also see this changed seekg behaviour then they will = have problems too. Regards -Mark --Apple-Mail=_40EEDD7B-003B-45CD-8C25-571C5D881176 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEzBAEBCgAdFiEE7YIgIVSPLJapfaYaETbJ7D8AEGMFAmTbTQMACgkQETbJ7D8A EGPPZgf/axdef7zj4kHZEz+cmVBSaR9TBmPpqM3EcyLvz93AZwVAGiENEzN7fBGa ULkLjhlNiTwAlacaV1BpkCTgW+1bFvi2RkH6tAdZirJyts6NZmLPLjNEmVxC5JdD m/YyzseMKRvx3CkRAzPUwIJpj8vl2hlf2DALltZRn67SORf4BK+oz3qCHT/lpyQs 5b2Gp8WIjSQ7FsEIyzhRfebCWGLFSUaoNsQYXme3yG91vazPQTRxFZlpEeF+m4NV 1dbgA7Owmpgv7GlixkneVE/DXjKXEybYM7NdQs9m5J+I/K/F1UVN00Ggx34QRXiY pcNEQkApPqtWEcsP9xvAfhAtBRuPRQ== =/SyC -----END PGP SIGNATURE----- --Apple-Mail=_40EEDD7B-003B-45CD-8C25-571C5D881176--