From Martin Maechler <maechler@stat.math.ethz.ch>  Fri Aug  8 16:15:10 1997
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Fri, 8 Aug 1997 17:15:10 +0200
Subject: R-alpha: Second patch for 0.50-a1:   cut(.) fails .. -- PATCH (?!)
In-Reply-To: <199708080929.LAA03674@sophie.ethz.ch> (message from Martin
 Maechler on Fri, 8 Aug 1997 11:29:43 +0200)
Message-ID: <199708081515.RAA03936@sophie.ethz.ch>


It was not only  cut(.) but also  formatC(.)
whose .C(..) calls gave the
 >>>> Error: character variables must be duplicated in .C/.Fortran

Looking a bit at  src/main/dotcode.c
(and reading Ross' explanation that it was a "variable initialization problem")

I decided to 
REPLACE line 413  in src/main/dotcode.c
which (after the patch) reads
		*dup = 0;
by
		*dup = 1;
---
and yes, this seems to solve the problem.

'make tests' at least works and gives about the same as with  0.50 Alpha-2.

----
Martin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel 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-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: Second patch for 0.50-a1: cut(.) fails .. -- PATCH (?!)
Martin Maechler