Subject: binary vs text mode for stdin and stdout
From: [email-masked] ("Donald W. Anderson")

6 Nov 1996 18:07:35 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: [email-masked]
X-Mailer: Windows Eudora Pro Version 3.0b26 (32)
Original-To: [email-masked]
Original-Sender: [email-masked]

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: [email-masked]
url: http://iip.ucsd.edu/personal/dwa
----------------------------------------------------------
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".