yaski@NTT-20.MIT.EDU.UUCP (03/26/87)
I am currently working on Japanese TeX and wants to preview the output of JTeX. The easiest way seems to me to use "ximpv" because we are using IMAGEN printer as output device. However, ximpv in V10R4 does not work properly on our SUNs (on both SUN2 and SUN3). As far as I can tell from the output of ximpv (it works but the output is wrong), there must be some byte swapping somewhere in the program. Do you know this bug? Or do I made some mistakes in the installation process? I will appreciate your help. -yaski -------
mason@ANUBIS.UCHICAGO.EDU.UUCP (03/28/87)
The fix was posted a little while ago. Here is the article:
Article 163 of comp.windows.x:
Relay-Version: version B 2.10.2 9/18/84; site gargoyle.uchicago.edu.UUCP
Path: gargoyle.uchicago.edu!oddjob!uwvax!husc6!panda!genrad!decvax!ucbvax!EE.ECN.PURDUE.EDU!jrs
From: jrs@EE.ECN.PURDUE.EDU (Jeff Schwab)
Newsgroups: comp.windows.x
Subject: Re: Fixes to ximpv for Sun 3?
Message-ID: <8703090347.AA06477@ee.ecn.purdue.edu>
Date: 9 Mar 87 03:47:21 GMT
Date-Received: 9 Mar 87 15:01:43 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The ARPA Internet
Lines: 50
In order to get ximpv to run on our Suns (running 3.0),
we had to make two small changes. The first is in impv.c,
routine BitsPut():
.
.
.
for (ptr = outbuf, i = delta;
--i >= 0;
data += linesize, ptr += per)
#ifdef sun
swab(data, ptr, per);
#else sun
bcopy(data, ptr, per);
#endif sun
XBitmapBitsPut(Win, dstx, dsty, width, delta, outbuf,
forepix, backpix, NULL, GXcopy, AllPlanes);
.
.
.
The second change is in imPdefs.h:
.
.
.
typedef union { /******** DECODE PARAMETERS ***********/
BDIM pval; /* parameter value */
struct {
#ifdef XWIND
#ifdef sun
char hival;
char loval;
#else sun
char loval;
char hival;
#endif sun
#else
char hival;
char loval;
#endif
.
.
.
Hope it helps.
Jeff Schwab
jrs@ee.ecn.purdue.edu
-------------
I hope this will do the trick.
Tony Mason
Univ. of Chicago, Dept. of Comp. Sci.
ARPA: mason@anubis.uchicago.edu
UUCP: ...ihnp4!gargoyle!mason