diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2013-12-18 14:38:56 -0700 |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2014-01-04 10:43:12 -0700 |
commit | a1e542f19551072f101404e16e1dad901189f039 (patch) | |
tree | 215a0e8627dfabc2e113c5881b52c29aa013abbd /Source/ctest.cxx | |
parent | 7fb2b806626b9af791d7372d2ff82b2cf1503237 (diff) | |
download | cmake-a1e542f19551072f101404e16e1dad901189f039.tar.gz |
Use Encoding::CommandLineArguments for main() functions.
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r-- | Source/ctest.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx index de0745860a..3eb5551950 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -18,6 +18,7 @@ #include "CTest/cmCTestScriptHandler.h" #include "CTest/cmCTestLaunch.h" +#include "cmsys/Encoding.hxx" //---------------------------------------------------------------------------- static const char * cmDocumentationName[][2] = @@ -111,8 +112,13 @@ static const char * cmDocumentationOptions[][2] = }; // this is a test driver program for cmCTest. -int main (int argc, char *argv[]) +int main (int argc, char const* const* argv) { + cmsys::Encoding::CommandLineArguments encoding_args = + cmsys::Encoding::CommandLineArguments::Main(argc, argv); + argc = encoding_args.argc(); + argv = encoding_args.argv(); + cmSystemTools::DoNotInheritStdPipes(); cmSystemTools::EnableMSVCDebugHook(); cmSystemTools::FindCMakeResources(argv[0]); |