delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/24/13:35:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Envelope-Sender-Is: Andrej DOT Borsenkow AT mow DOT siemens DOT ru (at relayer david.siemens.de)
Date: Tue, 24 Jul 2001 21:16:26 +0400 (MSD)
From: Andrej Borsenkow <Andrej DOT Borsenkow AT mow DOT siemens DOT ru>
X-X-Sender: <bor AT itsrm2 DOT mow DOT siemens DOT ru>
To: Ed Bradford <egb AT us DOT ibm DOT com>
cc: <cygwin AT cygwin DOT com>
Subject: Re: Buffered IO curiosity effects non-CYGWIN programs.
In-Reply-To: <OFB290CEF0.D55DD68C-ON85256A93.004D3ED8@raleigh.ibm.com>
Message-ID: <Pine.SV4.4.33.0107242110050.6134-100000@itsrm2.mow.siemens.ru>
MIME-Version: 1.0

On Tue, 24 Jul 2001, Ed Bradford wrote:

> There were no replys to my question about buffered IO.
>
> Write a 14 line program reading lines from stdin and printing them to
> stdout. Compile with Microsoft CL.exe. Run the program from bash and it
> runs as if buffering were turned on. It doesn't recognize the console as an
> interactive output requiring immediate flushing. Run the very same program
> from cmd.exe and it works correctly.
>
> This is a bug in something because it effects programs that are not
> compiled with CYGWIN. Has anyone seen this problem and is there any type of
> resolution?
>

It is very interesting definition of "bug". "Bug" is when program behaves
differently as designed. Nobody ever claimed that Cygwin was designed to
transparently run Win32 applications.

Cygwin terminal is not Win32 console. I do not know if it is somewhere in
FAQ (cannot check at this moment) but it probably should be.

There is a program from Egor Duda that may help, it is called ttyfier.
Search archives. I have not tried it myself.

-andrej




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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