From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13876 invoked by alias); 29 Jul 2013 15:44:23 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 13867 invoked by uid 89); 29 Jul 2013 15:44:22 -0000 X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_20,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RDNS_NONE,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from Unknown (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 29 Jul 2013 15:44:22 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MQP00100FO3ND00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Mon, 29 Jul 2013 18:44:13 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MQP001CIFPPG340@a-mtaout20.012.net.il>; Mon, 29 Jul 2013 18:44:13 +0300 (IDT) Date: Mon, 29 Jul 2013 15:44:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 3/3] Set stdin/stdout/stderr to binary mode in cygwin. In-reply-to: <1375087546-22591-4-git-send-email-yao@codesourcery.com> To: Yao Qi Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83r4ehxtey.fsf@gnu.org> References: <1375087546-22591-1-git-send-email-yao@codesourcery.com> <1375087546-22591-4-git-send-email-yao@codesourcery.com> X-SW-Source: 2013-07/txt/msg00709.txt.bz2 > From: Yao Qi > Date: Mon, 29 Jul 2013 16:45:46 +0800 > > + 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?