]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/text-stream.cc
release: 0.1.61
[lilypond.git] / flower / text-stream.cc
index 530c6f8ecd5f1c5b5b84fa7627b3b3e6c1ab70ab..01d2e8ef5cc24dba9b930ec3ea2aeb9b8042d9f7 100644 (file)
@@ -3,21 +3,21 @@
 Text_stream::Text_stream (String fn)
 {
   ios::sync_with_stdio();
-  if (fn == "") 
+  if (fn == "")
            {
-           name = "<STDIN>";       
+           name = _("<STDIN>");
            f = stdin;
              }
-       
-       else 
+
+       else
            {
-           name = fn;      
-           f = fopen (fn, "r");
+           name = fn;
+           f = fopen (fn.ch_C (), "r");
              }
-       
-       if (!f) 
+
+       if (!f)
          {
-           cerr <<__FUNCTION__<< ": can't open `" << fn << "'\n";
+           cerr <<__FUNCTION__<< _(": can't open `") << fn << "'\n";
            exit (1);
          }
 
@@ -29,4 +29,3 @@ Text_stream::message (String s)
 {
   cerr << "\n"<<get_name() << ": " << line ()<<": "<<s<<endl;
 }
-