[7133] in SIPB bug reports

home help back first fref pref prev next nref lref last post

Re: gv

daemon@ATHENA.MIT.EDU (Aaron M. Ucko)
Thu Jan 14 03:50:20 1999

To: Archit P Shah <ashah@MIT.EDU>
Cc: bug-sipb@MIT.EDU
From: amu@MIT.EDU (Aaron M. Ucko)
Date: 14 Jan 1999 03:46:59 -0500
In-Reply-To: Archit P Shah's message of "Wed, 02 Dec 1998 04:53:16 EST"

<ashah@MIT.EDU> (Archit P Shah) writes:

> gv no longer lets me change magnification or page size on NetBSD and
> SGIs.  Can you please fix this ASAP, it would make looking at class
> notes a lot easier.

I found the problem.  gv needs to find gs, so /mit/sipb/arch/*/bin/gs
is a wrapper around the real binary, which is named gv.real.
Unfortunately, the . in the name of the real binary causes gv to fail
to get all of its resources properly.  (This is arguably a bug in Xt.)
Here are the solutions/workarounds I see:

1) Rename the real binary to something not containing a dot, and
change the wrapper accordingly.

2) Have gv calculate a safe but maximally accurate value for gv_name
and pass it to XtOpenDisplay.

3) Edit the app-defaults file to list everything by class name.

(1) is a blatant workaround, but easiest to carry out.  (2) is
probably the Right Solution, but requires a rebuild.  (3) is a blatant 
workaround requiring more work than (1), and listed only for
completeness.

Sorry about taking so long to find the cause of the bug.

-- 
Aaron M. Ucko, KB1CJC <amu@mit.edu> (finger amu@monk.mit.edu)

home help back first fref pref prev next nref lref last post