\"tar\" and non-8-bit byte machines
Jeff Mogul
mogul at Shasta
Wed Nov 21 05:36:29 AEST 1984
The issue is that, in order for the VAX to read S-1 text files
and vice versa, text files must be stored using a different
representation than binary files. There is no reliable way to
determine whether a file should be "text" or "binary" when the
tape is written, and no field in the "tar" header for recording
this information even if the writer could reliably figure it out.
This is one of the things that make Unix hard to use in a heterogeneous
environment (lack of file type tags), but I think the way out of your
dilemma is to assume that files are text files.
How often, after all, are you going to exchange binary files between
the S-1 and a Vax? Tar is a fair standard for exchanging text
files, but if you try to move an 8-bit binary file from the Vax to
the S-1, you'll probably have to massage it anyway. It might be
better to convert binary files to text (e.g., a list of decimal numbers)
than to try to solve the problem in tar.
So, optimize for the dominant case (text files) and hope that
binary files stay rare.
More information about the Comp.unix.wizards
mailing list