Force dcpomatic_create output to be marked UTF-8 when it goes to the console.
authorCarl Hetherington <cth@carlh.net>
Tue, 4 Mar 2014 18:46:32 +0000 (18:46 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 4 Mar 2014 18:46:32 +0000 (18:46 +0000)
src/tools/dcpomatic_create.cc

index 3dfbd63b57a1c9db685f6eb48415e18b66078889..4f737dd5a53eafbefa0dd2d2d030fb9e6e03377e 100644 (file)
@@ -179,7 +179,7 @@ main (int argc, char* argv[])
                if (!output.empty ()) {
                        film->write_metadata ();
                } else {
-                       film->metadata()->write_to_stream_formatted (cout);
+                       film->metadata()->write_to_stream_formatted (cout, "UTF-8");
                }
        } catch (exception& e) {
                cerr << argv[0] << ": " << e.what() << "\n";