[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm

foxr foxr at source.lon-capa.org
Tue Jul 17 05:54:48 EDT 2012


foxr		Tue Jul 17 09:54:48 2012 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  Accidently killed off the utf-8 output file specification :-(
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.160 loncom/xml/lonplot.pm:1.161
--- loncom/xml/lonplot.pm:1.160	Mon Jul 16 10:09:36 2012
+++ loncom/xml/lonplot.pm	Tue Jul 17 09:54:48 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.160 2012/07/16 10:09:36 foxr Exp $
+# $Id: lonplot.pm,v 1.161 2012/07/17 09:54:48 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2004,7 +2004,8 @@
 	$linestyle_index++;	# Each curve get a unique linestyle.
     }
     # Write the output to a file.
-    open (my $fh,">$tmpdir$filename.data");
+    open (my $fh, "> $tmpdir$filename.data");
+    binmode($fh, ':utf8');
     print $fh $gnuplot_input;
     close($fh);
     # That's all folks.




More information about the LON-CAPA-cvs mailing list