delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/25/11:33:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-101.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,USER_IN_WHITELIST
X-Spam-Check-By: sourceware.org
X-Mail-Handler: MailHop Outbound by DynDNS
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19PQAHsl2G2d5GHsbU79sZW
Resent-From: Christopher Faylor <me AT cgf DOT cx>
Resent-Date: Wed, 25 Apr 2012 11:32:43 -0400
Resent-Message-ID: <20120425153243 DOT GA31279 AT ednor DOT casa DOT cgf DOT cx>
Resent-To: cygwin AT cygwin DOT com
Date: Wed, 25 Apr 2012 11:25:18 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.10->1.7.13 : output from .NET programs does not get through pipeline to a visual c++ program
Message-ID: <20120425152518.GA30289@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAHxe11=J=cJnwWcRnA1Pi9CmezWw+z04-b5k4trVmE3mVbiH7A AT mail DOT gmail DOT com> <CAHxe11=DBVftZ15xCLjnaEFYVESqggezJtx2EJNK2ZTUrMUNdQ AT mail DOT gmail DOT com> <00e101cd1f09$83405310$89c0f930$@motionview3d.com> <CAHxe11=ixmncGgNby3+RZspVQT6DxnFuTbCgH4si=yRk1EhmyQ AT mail DOT gmail DOT com> <CAHxe11=PC55f7x6o6HSzz42Y9evNWBOhCsw0NemHZa4JcnHbAw AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAHxe11=PC55f7x6o6HSzz42Y9evNWBOhCsw0NemHZa4JcnHbAw@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Wed, Apr 25, 2012 at 03:19:26PM +0100, alanhowells.e4ward.com wrote:
>> Please don't http://cygwin.com/acronyms/#TOFU
>My apologies
>
>I know my test code wasn't robust, I just wanted to get something
>going to prove any issues. Anyway, I still have the issue when using
>std::cin. Let me start again and give you some programs and show you
>what is happening.
>
>I have 4 programs, consoleout1 (a C# program calling PInvoke methods
>which replicates Console.Out.WriteLine at its minimum), consoleout2 (a
>c++ program calling the same Win32 methods as consoleout1), readin1 (a
>c++ program that uses std::cin to read from the console) and readin2
>(a c++ program uses Win32 to read from the console).
>
>Here are the results
>$ ./consoleout1.exe hello world | ./readin1.exe
>$ ./consoleout1.exe hello world | ./readin1.exe
>$ ./consoleout1.exe hello world | ./readin2.exe
>hello
>world
>$ ./consoleout2.exe hello world | ./readin1.exe
>$ ./consoleout2.exe hello world | ./readin1.exe
>hello
>world
>$ ./consoleout2.exe hello world | ./readin2.exe
>hello
>world
>$

I've built the c++ programs with mingw gcc and I can't duplicate the
behavior.  And, that's a relief because the behavior makes no sense.
There should be no persistent state saved between opening of two
different pipes.

So, sorry, but the only theory I can raise is BLODA.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019