home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
back2roots/padua
/
padua.7z
/
padua
/
uucp
/
XXpair.lzh
/
XXEncode.ReadMe
< prev
Wrap
Text File
|
1992-02-02
|
9KB
|
209 lines
XXEncode for the Amiga
----------------------
------------------------------------------------------------
DISCLAIMER : This work (the executables) is Freeware.
The executable files can be distributed in any
way, so long as they are the ORIGINAL programs.
That is, patches or changes to the code should
NOT be distributed. I claim no responsibility
for any damage or problems this program may
cause. Use at your own risk.
If at all possible, include the readme files
when distributing.
------------------------------------------------------------
XXEncode is used to transform files into ones such that they
can be sent via network mailers. This encoding method is
similar to the popular UUEncode, yet is much more compatible
with various systems. For instance, UUEncoded files cannot
be sent to or from a VM/XA system, since some of the char-
acters used in UUEncode are not translated correctly. With
XXEncode, however, most if not all (I don't know of any that
can't use it) network systems translate properly. Also, some
UUEncode (especially the Unix versions) implementations use
the space (' ') character in the encoding, which when
appearing at the end of a line may cause truncation problems.
XXEncode uses no spaces...the character set that XXEncode
uses contains the numbers 0 through 9, the lowercase letters
'a' through 'z', the uppercase letters 'A' through 'Z', the
plus character '+', and the minus character '-'.
It is my sincere hope that XXEncode will be useful for those
people using systems that cannot handle UUEncoded files. I
personally use an VM/XA system and have been extremely
irritated at UUEncode many times in the past. Now, my E-Mail
friends and I all use XXEncode. My hope is that XXEncode
will become popular enough so that other people requiring
this type of utility, but cannot use UUEncode because of the
reasons stated above, can find a version of XXEncode easily.
Since I have seen MSDOS and VM/XA versions, I decided to
concentrate my efforts on the Amiga. Note that neither the
MSDOS nor the VM version featured the myriad of options and
conveniences of this version, nor did they use any checksum
method. I plan to port the Amiga version to MSDOS soon.
Note : You can see what version the executable is by using
AmigaDOS's "Version" command. Just type :
Version XXEncode
at the CLI prompt. This is for minor updates in
the future. Readme files may or may not be updated
(NOT in the case of bug fixes...only in the case
of new usage or added features) with each new
version, so the executable is the *actual* version
if it is in question at all.
XXEncode may only be used from the CLI.
Usage : XXEncode [switches] input_file1 [input_file2...] [output_file]
For switch usage, see below.
You may supply any number of input files. There is one case
where you **MUST** supply an output file : if you supply more
than one input file AND you do NOT use the -S switch, YOU
MUST SUPPLY an output filename is the last argument. BE VERY
CAREFUL!!! IF YOU USE THE -R SWITCH IN THIS CASE AND THE
LAST ARGUMENT ALREADY EXISTS, IT WILL BE OVER-WRITTEN!!!
I have included a 'catch' in the code for just such an
occurance...it will ask if you are sure you want to use that
file as the output file after all! :-> Try it out to see
what I'm talking about.
Switch Usage :
--------------
All switches must be grouped (as in "-RC") if more than
one is used ("-R -C" is not valid). See the TODO section
for more info on this. Also, all the switches MUST appear
BEFORE any filenames ("XXEncode file -R" is not valid).
-C
===
Using -C will cause XXEncode to create a checksum character
for each line (which is appended to the end of the line).
This is so that if the file becomes damaged in such a way that
normal error checking fails, XXDecode can be more accurate in
finding corrupt lines.
-R
===
The -R switch will allow XXEncode to overwrite files that already
exist (the output file(s)).
Normally, overwriting of the output file(s) is prohibited.
Just a luxury to save you the task of deleting the
file yourself before running XXEncode (and a bit of safety as
well!!!).
-M
===
This causes XXEncode to make all output files relate to the
number of input files at a 1:1 ratio. WHAT?! :-> What I
mean is, there will be the same number of output files as
input files (you don't actually supply an output name...all
output files will be called '<infile>.XXE' where <infile>
is the particular input file that is being processed). The
expected use for this is when you want to process many input
files, but don't want them all put in one output file. Be
careful when using -R in conjunction with this...remember
that switches affect ALL files on the command line!
NOTE : If a file begins with a minus sign ('-') or is enclosed
in double quotes ('"'), you must enclose the ENTIRE filename
in double quotes.
For example, if you have two files :
-file1
and
"file2"
To reference either of these types of files with XXEncode,
call them :
"-file1"
and
""file2""
NEVER use the apostrophe ("'") to escape AmigaDOS's special
characters. For example, if your file is named :
File#1(part2)
just type it on the command line verbatim...i.e., DON'T use
File'#1'(part2')
as the AmigaDOS manual specifies. The only "special"
characters you need to do anything about are files that
begin with a minus sign or are enclosed in double quotes.
If this is unclear or seems strange, you probably won't have
to worry about it. I only made this feature so that people
that had filenames with abnormal (relatively speaking)
characters wouldn't have to rename or do anything special.
This implies that pattern matching is not available. See
more about that in the TODO section.
Miscellaneous Notes :
---------------------
If more than one input file is used on the command line, you
MUST also supply an output filename...all input files that are
processed will be put into this output file. I can already
hear you grumbling...if you want to process multiple files but
want them put into their own separate output files, see the
'-M' switch usage above. Also remember that when you only
encode one file, you don't have to supply an output filename
if you don't mind the automatic filename that is created (see
usage note by running the executable).
Note that if you want to use more than one switch, they MUST be
grouped together...only one '-' symbol should be used. For
example "-RCM" is valid while "-RC -M" is not (in this case "-M"
would try to be opened as a file).
Also note that case of the letters doesn't matter..."-m" is
the same as "-M". See the TODO section for more on this.
Please send any and all bugs or mistakes to one of the e-mail
addresses listed at the end of this document. No bug is too
trivial (heck, I even want to hear about spelling mistakes in
the readme files!) !! ;^)
TODO :
------
* Make it possible to use the switches separately (as in "-R -M")
as well as the existing grouping method. Why is this not done
already? Although it is a simple alteration, it will complicate
the way I process files a bit. I'd rather not open this can of
worms just yet. :-)
* Allow pattern matching for filenames. This shouldn't be a
problem and will probably be out soon. This may also change the
way I process files somewhat, which is why it is not already
implemented. But as Paul Baldwin from 'Coffee Talk' would say,
"No big whup." :~)
THANKS TO :
-----------
Geoffrey Faivre-Malloy for giving me the original VMS source,
testing the beta versions, his opinions, tips, advice,
inspiration, and his undying support to make XXEncode
more popular than UUEncode !! ;-)
Danny Osborne for providing the checksum technique. Without
him I would probably *still* be fiddling around with it! :~)
Bug reports and correspondence :
--------------------------------
Ernest Crvich | crvich@csugrad.cs.vt.edu
P.O. Box 11821 | general@vtvm1.cc.vt.edu
Blacksburg, VA | general@vtvm1.bitnet
24062-1821