delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/17/18:56:55

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


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