Re: Pipes truncating data in cygwin from main and cygwin-3_4-branch

2023-08-15 Thread キャロウ マーク via Cygwin
> On Aug 15, 2023, at 18:09, キャロウ マーク wrote: > > ... > > 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

Re: Pipes truncating data in cygwin from main and cygwin-3_4-branch

2023-08-15 Thread Takashi Yano via Cygwin
On Tue, 15 Aug 2023 18:09:50 +0900 キャロウ マーク wrote: > > On Aug 15, 2023, at 15:42, Takashi Yano wrote: > > > >> > >>> > >>> New pipe implementation since cygwin 3.4.x provides the pipes > >>> more similar to pipe in command prompt for non-cygwin apps. > >> > >> What are the differences between

Re: Pipes truncating data in cygwin from main and cygwin-3_4-branch

2023-08-15 Thread キャロウ マーク via Cygwin
> On Aug 15, 2023, at 15:42, Takashi Yano wrote: > >> >>> >>> New pipe implementation since cygwin 3.4.x provides the pipes >>> more similar to pipe in command prompt for non-cygwin apps. >> >> What are the differences between these pipes? What changed? > > Many changes. But, the change whi

Re: Pipes truncating data in cygwin from main and cygwin-3_4-branch

2023-08-14 Thread Takashi Yano via Cygwin
On Tue, 15 Aug 2023 09:53:16 +0900 キャロウ マーク wrote: > > On Aug 15, 2023, at 9:30, Takashi Yano wrote: > > > > Your test case does not work in command prompt as well. > > > > Try > > type testfile | test-pipe sizeoftestfile > > in command prompt. It will fail. > > Interesting. > > > > > New pip

Re: Pipes truncating data in cygwin from main and cygwin-3_4-branch

2023-08-14 Thread キャロウ マーク via Cygwin
> On Aug 15, 2023, at 9:30, Takashi Yano wrote: > > Your test case does not work in command prompt as well. > > Try > type testfile | test-pipe sizeoftestfile > in command prompt. It will fail. Interesting. > > New pipe implementation since cygwin 3.4.x provides the pipes > more similar to

Re: Pipes truncating data in cygwin from main and cygwin-3_4-branch

2023-08-14 Thread Takashi Yano via Cygwin
On Mon, 14 Aug 2023 20:51:39 +0900 キャロウ マーク wrote: > I have a problem that looks like pipes are truncating data when I cat a file > to my program’s stdin. A simple `cat foo | cat > bar` works fine. bar ends up > identical to foo. It is more complicated than that. My application is doing > this >