[comp.text.tex] DVItoVDU, little and BIG endian ...

bartho@obs.unige.ch (Paul Bartholdi, Geneva Observatory) (12/06/90)

In article <1990Nov21.065545.17865@cec1.wustl.edu>, abed@saturn.wustl.edu (Abed Hammoud) writes:
> 
> 	Hello, I obtained the program DVItoVDU couple of days ago
> 	and I am having trouble running it on a micro-term terminal
> 	that emulates vt200/vt100. Note vt200 supports ReGis.
> 	Did anybody tried to run "dv" on a micro-term (ergo 340).
> 	If yes please let me know what did you do to get it to work..
> 
> 	I my case every time I type 
> 
> 	dv -v vt100 filename
> 	or
> 	dv -v vt220 filename
> 	or
> 	dv -v regis filename
> 
> 	I get the error message:
> 
> 	Unexpected DVI command in postamble = 0
> 

I had the same error after compiling dvitovdu on a sun sparc 4/65. It was
independant of the terminal type.

Then I found that the sparc was not made by God, and that I had to turn
the knob in config.h from little into BIG endian.  Here are the first 4 lines
of confing.h (after correction):

-----------------------------------------------------------------------------
#include <stdio.h>

/* #define LITTLE_ENDIAN */		/* As God intended */ 
#define BIG_ENDIAN		/* Otherwise, that is as Sun intended ... */
-----------------------------------------------------------------------------

Now every thing is OK, at least on the sparc.  Earlier, I had used the modula2
version a lot on a vax.  The new one is even better, except that a README file
concerning the implementation on various machines would be quite usefull.

               Regards,    Paul Bartholdi, Geneva Observatory, Switzerland.