Message-ID: <39738EA4.C086FAE4@teleline.es> Date: Tue, 18 Jul 2000 00:54:28 +0200 From: Mariano Alvarez Fernandez X-Mailer: Mozilla 4.5 [es] (Win95; I) X-Accept-Language: es MIME-Version: 1.0 To: djgpp Subject: input-output redirection problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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.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?