summaryrefslogtreecommitdiffstats
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2013-12-18 21:38:56 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2014-01-04 17:43:12 (GMT)
commita1e542f19551072f101404e16e1dad901189f039 (patch)
tree215a0e8627dfabc2e113c5881b52c29aa013abbd /Source/ctest.cxx
parent7fb2b806626b9af791d7372d2ff82b2cf1503237 (diff)
downloadCMake-a1e542f19551072f101404e16e1dad901189f039.zip
CMake-a1e542f19551072f101404e16e1dad901189f039.tar.gz
CMake-a1e542f19551072f101404e16e1dad901189f039.tar.bz2
Use Encoding::CommandLineArguments for main() functions.
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index de07458..3eb5551 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]);