ATROX mp3-restore v0.5
Quick hack in C
22.Nov 97

   This program corrects mp3-filez downloaded as "text/plain". It should 
   also correct any other file downloaded this way... but never tested.
	
   Please keep in mind that using mp3-files could be illegal.

   You can distribute this program freely as long as the copyright-notice is
   not removed or altered and it is distributed with the source-code and this
   readme.
   This program is WITHOUT ANY WARRANTY.

   Code should be 100% ANSI C... so there should be no problem
   with compiling it.
   Tested:
     * W32 Console-Application (VC++) (with Long filename-Support!)
     * Dos-App (Borland C)

USE:
  a) From Commandline
     a1) Using a.mp3 and writing to b.mp3:
           mp3rest a.mp3 b.mp3
     a2) Using a.mp3 and writing to the same file:
           mp3rest a.mp3
         In this case, the program renames the old file to "mp3rest.bak".
         Attention: An existing backupfile is deleted without warning!
  b) From the Explorer
     see "TiPS"

TiPS:
  You can drag'n'drop a corrupt mp3 to "mp3rest.exe" in the explorer-
  window. Drop the file and the restoring is started in a Dos-box.

FAQ
  Q: What is the problem with downloading mp3 with Netscape?
  A: This Problem seems to appear only under Windows because PCs use
     CR+LF instead of a single LF (LineFeed) in textfiles. Many Webadmins
     did not set a correct mime-type for "mp3" so the standard mime-type
     is used (text/plain). If Netscape recieves something with this
     mime-type it expands every LF to CR+LF.
     Solution:
     *) Use "mp3rest" :))
     *) Set up a correct mime-type (If you are a Webadmin). Use
        audio/x-mpeg or audio/mpeg
     *) Use another protocol to download (if possible... e.g: ftp)
     *) Use another Browser to download (lynx... )
  Q: Is this a bug of Netscape ?
  A: No. This is an error in configuration of the webserver you are
     downloading from. (It sends the mp3 with the information that it
     is a plain textfile.)
     Converting textfiles for PCs (LF-> CR+LF), is a good function of
     Netscape Navigator. So you normaly do not have problems using
     downloaded textfiles with DOS/Win programs. 

BUGs:
* If you use the drag'n'drop method, the program put its backupfile on
  the desktop, and not in the folder of the mp3-file.
  If you start the program from commandline, it put the backupfile (only
  if you do not give a name for the new mp3-file) to the current folder.
* Useing the same filename as 1st and 2nd argument cuts down the file to
  1 Byte! So be carefull!

Adrian Dabrowski
atrox@htl-tex.ac.at
http://idefix.htl-tex.ac.at/atrox/mp3/

Please mail me bugs,... etc.
DO NOT mail me things like "How do I use the program" or "Where can I
get mp3-files".
Thank you.



