]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/streams.cc
``slikken kreng''
[lilypond.git] / lily / streams.cc
index 3214cabcfa164f16c4bcfb05a104a9b6ac6494d1..ebc42cc15f20a84306c1f9e6aa12089b153e2421 100644 (file)
@@ -30,9 +30,9 @@ open_file_stream (String filename, int mode)
     {
       Path p = split_path (filename);
       if (!p.dir.empty_b ())
-        if (mkdir (p.dir.ch_C (), 0777) == -1 && errno != EEXIST)
+        if (mkdir (p.dir.to_str0 (), 0777) == -1 && errno != EEXIST)
           error (_f ("can't create directory: `%s'", p.dir));
-      os = new std::ofstream (filename.ch_C (), mode);
+      os = new std::ofstream (filename.to_str0 (), mode);
     }
   if (!*os)
     error (_f ("can't open file: `%s'", filename));