This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/3] Set stdin/stdout/stderr to binary mode in cygwin.
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 01 Aug 2013 19:37:19 +0300
- Subject: Re: [PATCH 3/3] Set stdin/stdout/stderr to binary mode in cygwin.
- References: <1375087546-22591-1-git-send-email-yao at codesourcery dot com> <1375087546-22591-4-git-send-email-yao at codesourcery dot com> <83r4ehxtey dot fsf at gnu dot org> <51FA17C3 dot 9070307 at codesourcery dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.