From: <ai...@us...> - 2014-03-27 17:56:15
|
Revision: 13087 http://sourceforge.net/p/plplot/code/13087 Author: airwin Date: 2014-03-27 17:56:11 +0000 (Thu, 27 Mar 2014) Log Message: ----------- Use more robust fix noted at http://savannah.gnu.org/bugs/?41965 by Mike Miller which does not depend on assumptions about the internal type used to represent Octave strings. fwrite (fid, text, "schar"); ==> fprintf (fid, "%s", text); This change passes the same test on Linux with Octave 3.6.2 as the last version. Modified Paths: -------------- trunk/bindings/octave/PLplot/support/__makeinfo__.m Modified: trunk/bindings/octave/PLplot/support/__makeinfo__.m =================================================================== --- trunk/bindings/octave/PLplot/support/__makeinfo__.m 2014-03-27 01:12:32 UTC (rev 13086) +++ trunk/bindings/octave/PLplot/support/__makeinfo__.m 2014-03-27 17:56:11 UTC (rev 13087) @@ -120,7 +120,7 @@ if (fid < 0) error ("__makeinfo__: could not create temporary file"); endif - fwrite (fid, text, "schar"); + fprintf (fid, "%s", text); fclose (fid); ## Take action depending on output type This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |