This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]