|
From: Alan W. I. <ir...@be...> - 2001-11-23 17:53:41
|
Thanks very much for that fix, Hugh. I have just put it into the CVS
version of plplot. For those of you with xwin/solaris troubles (including
those who have reported some solaris troubles with yplot), please test the
cvs version of plplot to see if the troubles go away.
Alan
email: ir...@be...
phone: 250-727-2902 FAX: 250-721-7715
snail-mail:
Dr. Alan W. Irwin
Department of Physics and Astronomy,
University of Victoria, P.O. Box 3055,
Victoria, British Columbia, Canada, V8W 3P6
__________________________
Linux-powered astrophysics
__________________________
On Thu, 22 Nov 2001, H C Pumphrey wrote:
>
> Hi plplot people:
>
> I think I found a bug in plplot which causes the xwin driver to die when
> called from Fortran on Solaris 8.
>
> The bug is in this bit of xwin.c
>
> /* Window title */
>
> if (plsc->plwindow){ /* jc: allow -plwindow to specify wm
> decoration name*/
> sprintf(header, "%s", plsc->plwindow);
> }
> else
> sprintf(header, "%s", plsc->program); /* jc: else program name*/
>
> Now, when called from fortran, plsc->program is NULL at this point. In
> Xfree86 on my Linux box, this just causes the window to have (null) as a
> title, but on Slowaris, it causes a segfault. Yuk. One fix is as follows:
>
> /* Window title */
>
> if (plsc->plwindow){ /* jc: allow -plwindow to specify wm
> decoration name*/
> sprintf(header, "%s", plsc->plwindow);
> }
> else if( plsc->program){
> sprintf(header, "%s", plsc->program); /* jc: else program name*/
> }
> else
> sprintf(header,"%s","Plplot");
>
> Enjoy!
>
> Hugh
>
> P.S. I am wondering if this is the cause of some of the X weirdness on
> Solaris reported by others.....
|