R-beta: Re: R-0.49 -- '1 bit' patch for postscript bug

Martin Maechler (maechler@stat.math.ethz.ch)
Thu, 24 Apr 97 14:46:28 +0200


Date: Thu, 24 Apr 97 14:46:28 +0200
Message-Id: <9704241246.AA07046@>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: r-help@stat.math.ethz.ch
Subject: R-beta: Re: R-0.49 -- '1 bit'  patch for  postscript bug

Since it is now deep night in NZ, and the two R&R's did not yet send it to
this list :

!!>>	The postscript bug mentioned in 0.49 has a "1 bit" patch:

Replace '0' by '1' in one place of the source and recompile, i.e.,
type 'make' again in  $RHOME, i.e. the directory which should end in .../R-0.49

>> Date: Thu, 24 Apr 1997 21:35:41 +1200 (NZST)
>> From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
>> To: r-devel@stat.math.ethz.ch
>> Subject: R-alpha: R-0.49 Patch #1
>> Sender: owner-r-devel@stat.math.ethz.ch
>> 
>> This patch corrects the broken postscript graphics driver.
>> If you have already done it by hand ignore this.
>> 
>> Apply this patch within the R-0.49 directory.
>> 
>> The patch is also at the auckland.ftp site and soon at mirrors.
>> 	Ross


*** src/unix/PostScript.c.orig	Thu Apr 24 21:28:27 1997
--- src/unix//PostScript.c	Thu Apr 24 21:28:51 1997
***************
*** 160,166 ****
  	if(!MatchKey(buf, "C ")) return 0;
  	p = SkipToNextItem(p);
  	sscanf(p, "%d", &nchar);
! 	if(nchar < 0) return 0;
  	p = SkipToNextKey(p);
  
  	if(!MatchKey(p, "WX")) return 0;
--- 160,166 ----
  	if(!MatchKey(buf, "C ")) return 0;
  	p = SkipToNextItem(p);
  	sscanf(p, "%d", &nchar);
! 	if(nchar < 0) return 1;
  	p = SkipToNextKey(p);
  
  	if(!MatchKey(p, "WX")) return 0;
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=