This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with stdout BINARY


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]