From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: tmpfile() and binary mode in DJGPP Date: Fri, 30 May 1997 22:31:29 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 19 Message-ID: <338F5541.5DA5@cs.com> References: <01IJHT6V95V6001VQJ AT cc DOT uab DOT es> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp105.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk [Sorry for the duplicate posting... error correction below] X DOT PONS AT UAB DOT ES wrote: > > We have "discovered" that tmpfile() opens the temporay file in > the mode (binary or text) resulting from : > _fmode & O_TEXT > As the usual mode is text, the temporary file is created in text mode. This is a known bug and a patch to fix it has already been posted; look at bug report #000143 at . -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | God's final message to His Creation: | http://www.cs.com/fighteer | | "We apologize for the inconvenience."| <<< This tagline under >>> | | - Douglas Adams | <<< construction >>> | ---------------------------------------------------------------------