From: pchapuy%cgsmail@capgemini.fr (Philippe Chapuy)
Subject: Problem with stdout BINARY
11 Jun 1997 10:50:30 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <6B1B9232012A3900.cygnus.gnu-win32@smtpmhs.capgemini.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7BIT
Original-To: gnu-win32@cygnus.com (Cygnus gnuwin32)
X-mailer: Connect2-SMTP 4.00 MHS to SMTP Gateway
Original-Sender: owner-gnu-win32@cygnus.com

Hi everybody,

Trying to write gif file in stdout with 'putchar'. b18 seems to add a CRNL
every CR he
founds in the file.

I tried some code like:

struct termios p ;

if (tcgetattr (fileno(stdout), &p)) return;
p.c_oflag = 0 ;
if (tcsetattr (fileno(stdout), TCSANOW, &p)) return;

putchar(....

but, sniff, no longer work.

If someone has an idea...

Best regards.

Phil :-)


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
