delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/09/04/18:38:21

Xref: news-dnh.mv.net comp.os.msdos.djgpp:1887
Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!xlink.net!news.dfn.de!news.rwth-aachen.de!tabaqui!softbrek
From: softbrek AT tabaqui DOT informatik DOT rwth-aachen DOT de (Hans-Bernhard Broeker)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Tar that converts unix to DOS line endings
Date: 4 Sep 1995 15:49:06 GMT
Organization: RWTH -Aachen / Rechnerbetrieb Informatik
Lines: 27
References: <DDxv46 DOT 3vw AT jade DOT mv DOT net>
Nntp-Posting-Host: tabaqui.informatik.rwth-aachen.de
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Skip Egley <egley AT albany DOT net> writes:

>Can anyone recommend a good tar executable for DOS.  I have tried a couple of them 
>and they do not convert the CR to CR/LF or whatever it is that DOS wants.  I had to 
>write a program to do it myself, but it's a pain to do it when there's lots of 
>files.  It would be nice for tar to do it automatically - isn't there one out there 
>like that?

But how on earth should it be able to distinguish text files from binary ones?
According to this sparc's man-pages, there's no such information in a tar file.
And why do you think you need this conversion, BTW? Most DOS editors can read
Unix-style textfiles (they normally convert them to DOS style when saving 
an edited version), and DJGPP can do so as well. The only applications I know
of that can't cope with CR instead of CR/LF are command.com's internal command
'type' (and 'more', too, perhaps), and direct copy to a printer. These cases can
be handled seperately, if needed.

For these reasons, an automatic conversion might do you much more harm than you
would gain from it.

My alternative for personal system-to-system transfer is zip/unzip: these programs
are available in source form, and they *can* distinguish text files from non-text
files (on a heuristic basis, though). 

Hope this helps

Hans-Bernhard Broeker (Aachen, Germany)

- Raw text -


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