Re: [PATCH 3/3] Set stdin/stdout/stderr to binary mode in cygwin.

Eli Zaretskii
2013-08-01T16:37:16Z

> Date: Thu, 1 Aug 2013 16:09:39 +0800
> From: Yao Qi <yao@codesourcery.com>
> CC: <gdb-patches@sourceware.org>
>
> On 07/29/2013 11:44 PM, Eli Zaretskii wrote:
> >> + setmode (fileno (stdin), O_BINARY);
> >> >+ setmode (fileno (stdout), O_BINARY);
> >> >+ setmode (fileno (stderr), O_BINARY);
> > Do you really need all 3 of the standard handles in binary mode? I
> > thought the problem was only with output?
>
> Setting stdin in binary mode is for another purpose, should go to a
> separated patch. Sorry for the confusion. Patch below is to only set
> stdout and stderr in binary mode.

Thanks.