delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/06/11/10:50:30

From: pchapuy%cgsmail AT capgemini DOT fr (Philippe Chapuy)
Subject: Problem with stdout BINARY
11 Jun 1997 10:50:30 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <6B1B9232012A3900.cygnus.gnu-win32@smtpmhs.capgemini.fr>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com (Cygnus gnuwin32)
X-mailer: Connect2-SMTP 4.00 MHS to SMTP Gateway
Original-Sender: owner-gnu-win32 AT cygnus DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019