<div dir="ltr">Jorge,<div><br></div><div>file is recognizing it as an apple file.  This will be from one of two things, the magic number (first two bytes of the file) or the line endings (most likely cause).  It's been a long time since I've seen a dvi file, but if it has mac line endings, this is probably what is making it choke.</div><div><br></div><div>Linux (UNIX) uses a newline (line feed)</div><div>Windows uses line feed carriage return</div><div>Mac uses carriage return</div><div><br></div><div>I would suggest trying to replace the mac line endings with linux line endings.</div><div><br></div><div>Only thing that comes to mind.</div><div><br></div><div>David-</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 4, 2015 at 6:50 PM, Jorge Almeida <span dir="ltr"><<a href="mailto:jjalmeida@gmail.com" target="_blank">jjalmeida@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a few very old dvi files that I need to convert to pdf. The<br>
problem is that the files were produced in a Mac Classic, and it seems<br>
the format is not recognized in linux:<br>
<br>
$ file f.dvi<br>
f.dvi: AppleSingle encoded Macintosh file<br>
<br>
$ dvips f.dvi<br>
This is dvips(k) 5.993 Copyright 2013 Radical Eye Software (<a href="http://www.radicaleye.com" target="_blank">www.radicaleye.com</a>)<br>
dvips: ! Bad DVI file: first byte not preamble<br>
<br>
$ unsingle f.dvi<br>
f.dvi has no name for the mac file.<br>
<br>
(using unsingle is the only suggestion I got out of googling...)<br>
<br>
Needless to say, viewers like okular choke on it.<br>
<br>
I would love being able to forget I ever used a mac...<br>
<br>
Anyone been there?<br>
<span class="HOEnZb"><font color="#888888"><br>
Jorge Almeida<br>
_______________________________________________<br>
Linux-users mailing list<br>
<a href="mailto:Linux-users@linux-sxs.org">Linux-users@linux-sxs.org</a><br>
<a href="http://mailman.celestial.com/mailman/listinfo/linux-users" target="_blank">http://mailman.celestial.com/mailman/listinfo/linux-users</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe. -- Albert Einstein<br>Visit my web page at: <a href="http://david.bandel.us/" target="_blank">http://david.bandel.us/</a></div>
</div>