From: danderson AT ucsd DOT edu ("Donald W. Anderson") Subject: binary vs text mode for stdin and stdout 6 Nov 1996 18:07:35 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <3.0b26.32.19961106170454.00976da0.cygnus.gnu-win32@iip.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Sender: dwa_root AT iip DOT ucsd DOT edu X-Mailer: Windows Eudora Pro Version 3.0b26 (32) Original-To: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com I've been trying to compile the pbmplus utilities using gcc. Setting the switch -DSYSV seems to do the job, and we get nice executable utilities. Unfortunately, the pbmplus utilities expect to be used in a series of pipes and so want to read from stdin and write to stdout. Hacking the registry to set all files to binary mode seems a bit extreme. Visual C++ allows you to define _setmode to be _O_BINARY and get stdin and stdout to come up in binary mode, but I see nothing like that for the Cygnus version of gcc. Any chance that the mode of stdin/stdout could be set to default to binary mode? Or adding _setmode() to the distribution? ---------------------------------------------------------- Don Anderson, Department of Computer Science University of California, San Diego La Jolla CA 92037-0114 phone: (619) 534-1180 email: danderson AT ucsd DOT edu url: http://iip.ucsd.edu/personal/dwa ---------------------------------------------------------- - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".