Date: Tue, 28 Sep 1999 09:32:31 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Antonio Bonifati cc: djgpp AT delorie DOT com Subject: Re: R: open console into binary mode ? In-Reply-To: <002001bf091c$af7e7da0$119cd2d4@utente.telsa.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 27 Sep 1999, Antonio Bonifati wrote: > if (!isatty(STDIN_FILENO)) > setmode(STDIN_FILENO, O_BINARY); > if (!isatty(STDOUT_FILENO)) > setmode(STDOUT_FILENO, O_BINARY); > > and now it's all okay! Yes, this is the general solution if you need to put only redirected stdin/stdout into binary mode. > thank again. > also thank you for your wonderful DJGPP FAQ You are welcome.