Mail Archives: djgpp/2000/07/17/18:56:55
Hi.
Porting to DJGPP the last netpbm distribution I found a problem I
don't know how to deal. All the netpbm utilities take his input from
stdin, and write to stdout, like:
ppmtobmp <testimg.ppm >testimg.bmp
But on DJGPP, stdin and stdout are open in text mode, and the netpbm
utilites expect binary data. Most of the utilities can be run with the
input file like a parameter:
ppmtobmp testimg.ppm >testimg.bmp
This run OK for the input (they open it in binary), but the output
is corrupted if a byte conten is CR or CtlZ.
Any ideas?
- Raw text -