]> git.donarmstrong.com Git - lilypond.git/commitdiff
(file): open file in binary mode. This
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 17 Jun 2005 23:39:16 +0000 (23:39 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 17 Jun 2005 23:39:16 +0000 (23:39 +0000)
fixes OTF embedding on windows.

ChangeLog
lily/paper-outputter.cc

index 928dfa669e68f5066a21bf578afeb52060d9e384..80cd2c693257eae3674046c9176d914ee3a13394 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
+2005-06-18  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/paper-outputter.cc (file): open file in binary mode. This
+       fixes OTF embedding on windows.
+
 2005-06-17  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * scm/framework-ps.scm (write-preamble): remove debugging output.
+
        * mf/aybabtu.pe.in (i): don't generate aybabtu.cff
 
        * mf/GNUmakefile ($(outdir)/fonts.cache-1): create font cache for
index 5da3ca0607ed7b1981632248a261f480f77e0ce3..778c15880ef980bab22f5a38088c399fa1b0e1d0 100644 (file)
@@ -68,8 +68,12 @@ Paper_outputter::file ()
     if (file_name_ == "-")
       file_ = scm_current_output_port ();
     else
+      /*
+       Opening binary sucks a little for DOS, since PS doesn't look like
+       ASCII anymore, but binary CFFs will get embedded correctly.
+       */
       file_ = scm_open_file (scm_makfrom0str (file_name_.to_str0 ()),
-                            scm_makfrom0str ("w"));
+                            scm_makfrom0str ("wb"));
   return file_;
 }