All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Filip Navara <filip.navara@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3/5] Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32
Date: Mon, 27 Jul 2009 10:32:16 -0400	[thread overview]
Message-ID: <20090727143216.GA8161@caradoc.them.org> (raw)
In-Reply-To: <5b31733c0907270725y715098dcl8221e5de2e62995c@mail.gmail.com>

On Mon, Jul 27, 2009 at 04:25:32PM +0200, Filip Navara wrote:
> I use MinGW-built QEMU in regular command line and MSYS sh and I never had a
> single problem with the buffering. I can't speak for Cygwin, but if they
> can't get it right I don't think it's up to QEMU to fix it (heck, checking
> for a console handle is as easy as "(handle & 3) != 0").

It is not a Cygwin problem.  It's a MSVCRT runtime problem.  The
runtime checks isatty to determine the buffering of stdout (this is a
standard C thing to do), and Cygwin terminals do not show up as
consoles.

If the underlying device is really a Windows console, of course,
there's no problem.  But Cygwin SSH ptys, for example, are not
Windows consoles.

-- 
Daniel Jacobowitz
CodeSourcery

      reply	other threads:[~2009-07-27 14:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27  8:02 [Qemu-devel] [PATCH 3/5] Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32 Filip Navara
2009-07-27 13:21 ` Daniel Jacobowitz
2009-07-27 13:33   ` Filip Navara
2009-07-27 13:42     ` Daniel Jacobowitz
2009-07-27 14:25       ` Filip Navara
2009-07-27 14:32         ` Daniel Jacobowitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090727143216.GA8161@caradoc.them.org \
    --to=drow@false.org \
    --cc=filip.navara@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.