delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/30/03:03:53

From: ryot AT bigfoot DOT com (George Ryot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: about dtou and utod
Message-ID: <37a3dac3.10717704@news.clara.net>
References: <199907292028 DOT PAA12782 AT darwin DOT sfbr DOT org>
X-Newsreader: Forte Agent 1.5/32.452
MIME-Version: 1.0
Lines: 25
Date: Thu, 29 Jul 1999 23:13:05 GMT
NNTP-Posting-Host: 195.8.92.240
X-Complaints-To: abuse AT clara DOT net
X-Trace: nnrp3.clara.net 933289985 195.8.92.240 (Fri, 30 Jul 1999 00:13:05 BST)
NNTP-Posting-Date: Fri, 30 Jul 1999 00:13:05 BST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Jeff Williams <jeffw AT darwin DOT sfbr DOT org> wrote:

> I was thinking to detect whether a given text file (e.g., c source,
> makefile, TeX source, etc). has already been run through `dtou' before
> it gets added to the tarball.  If not, apply `dtou' before adding it to
> the archive.  In other words, I want to be sure that every text file in
> the tarball has been `dtou'ed, so I can avoid the need for `dos2unix'
> after unpacking everything on a true Unix box.

AFAICT it's ok to run dtou on a text file more than once so you could
dtou all text files on the DOS box before transfer.

The only thing would be to seperate out any binary files.  This is
required no matter what conversion method you choose, unless the
dos2unix program detects binary files (which dtou does not it seems).

> It doesn't matter with files transported from office (Solaris) to home
> (djgpp), because djgpp is so good about working with either format.

Have you considered using FTP to transfer the files in ASCII mode?
This should take care of any required conversions in either direction
automatically (assuming you have a DOS machine with a network
connection to your Unix box of course).
-- 
george

- Raw text -


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