diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-09 16:37:27 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-11 20:38:01 +0200 |
| commit | bbe336ee97c86c424f8f94e0f947f8e3b20e7123 (patch) | |
| tree | 8e150d92ce7b7f151618aec8cc056d2df01dc5fc /src/tools/dcpomatic_kdm_cli.cc | |
| parent | 2695f450ca00654cef8709e4e3cfb4cf5de48fc7 (diff) | |
Use GetCommandLineW() to get a UTF16-encoded command line on Windows (#2248).
Diffstat (limited to 'src/tools/dcpomatic_kdm_cli.cc')
| -rw-r--r-- | src/tools/dcpomatic_kdm_cli.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_kdm_cli.cc b/src/tools/dcpomatic_kdm_cli.cc index 46ab47a9a..1db5ce7f9 100644 --- a/src/tools/dcpomatic_kdm_cli.cc +++ b/src/tools/dcpomatic_kdm_cli.cc @@ -24,6 +24,7 @@ */ +#include "lib/cross.h" #include "lib/kdm_cli.h" #include "lib/util.h" #include <iostream> @@ -32,10 +33,12 @@ int main (int argc, char* argv[]) { + ArgFixer fixer(argc, argv); + dcpomatic_setup_path_encoding (); dcpomatic_setup (); - auto error = kdm_cli (argc, argv, [](std::string s) { std::cout << s << "\n"; }); + auto error = kdm_cli (fixer.argc(), fixer.argv(), [](std::string s) { std::cout << s << "\n"; }); if (error) { std::cerr << *error << "\n"; exit (EXIT_FAILURE); |
