]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/paper-outputter.cc
(file): open file in binary mode. This
[lilypond.git] / lily / paper-outputter.cc
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_;
 }