X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpaper-outputter.cc;h=778c15880ef980bab22f5a38088c399fa1b0e1d0;hb=f5e81dd9ca9e3621709898e6518ab7295377ac7c;hp=5da3ca0607ed7b1981632248a261f480f77e0ce3;hpb=58bcc84c9480dae1b21bc24d8396b91fe19e0131;p=lilypond.git diff --git a/lily/paper-outputter.cc b/lily/paper-outputter.cc index 5da3ca0607..778c15880e 100644 --- a/lily/paper-outputter.cc +++ b/lily/paper-outputter.cc @@ -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_; }