projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use GetCommandLineW() to get a UTF16-encoded command line on Windows (#2248).
[dcpomatic.git]
/
src
/
tools
/
dcpomatic_kdm_cli.cc
diff --git
a/src/tools/dcpomatic_kdm_cli.cc
b/src/tools/dcpomatic_kdm_cli.cc
index 04f102cf192d28e87108dfe164dfdee255507c85..1db5ce7f93ecf6968f481c7e4849e63a37037455 100644
(file)
--- a/
src/tools/dcpomatic_kdm_cli.cc
+++ b/
src/tools/dcpomatic_kdm_cli.cc
@@
-24,14
+24,21
@@
*/
*/
+#include "lib/cross.h"
#include "lib/kdm_cli.h"
#include "lib/kdm_cli.h"
+#include "lib/util.h"
#include <iostream>
int
main (int argc, char* argv[])
{
#include <iostream>
int
main (int argc, char* argv[])
{
- auto error = kdm_cli (argc, argv, [](std::string s) { std::cout << s << "\n"; });
+ ArgFixer fixer(argc, argv);
+
+ dcpomatic_setup_path_encoding ();
+ dcpomatic_setup ();
+
+ auto error = kdm_cli (fixer.argc(), fixer.argv(), [](std::string s) { std::cout << s << "\n"; });
if (error) {
std::cerr << *error << "\n";
exit (EXIT_FAILURE);
if (error) {
std::cerr << *error << "\n";
exit (EXIT_FAILURE);