delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/30/10:11:27

Date: Sun, 30 Aug 1998 17:10:42 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Horst Kraemer <horst DOT kraemer AT snafu DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: how to write binary files to stdout?
In-Reply-To: <35e5a1f1.105152255@news.snafu.de>
Message-ID: <Pine.SUN.3.91.980830171023.20257R-100000@is>
MIME-Version: 1.0

On Fri, 28 Aug 1998, Horst Kraemer wrote:

> 	main <dos.txt | program_expecting_unix_style_text_from_stdin

I hope you are aware that DJGPP comes with a utility called DTOU.EXE
that does that, and much more (e.g., it can convert several files at
once, or even an entire directory tree, and also preserves the time
stamp of the files it converts).

Also, please note that programs which expect Unix-style text, when
they are compiled with a DOS/Windows compiler, will happily read
DOS-style text as well, since the library strips off the CR
characters.

So I really don't understand why did you need the above.

- Raw text -


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