diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2013-12-18 21:38:56 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2014-01-04 17:43:12 (GMT) |
commit | a1e542f19551072f101404e16e1dad901189f039 (patch) | |
tree | 215a0e8627dfabc2e113c5881b52c29aa013abbd /Source/CursesDialog/ccmake.cxx | |
parent | 7fb2b806626b9af791d7372d2ff82b2cf1503237 (diff) | |
download | CMake-a1e542f19551072f101404e16e1dad901189f039.zip CMake-a1e542f19551072f101404e16e1dad901189f039.tar.gz CMake-a1e542f19551072f101404e16e1dad901189f039.tar.bz2 |
Use Encoding::CommandLineArguments for main() functions.
Diffstat (limited to 'Source/CursesDialog/ccmake.cxx')
-rw-r--r-- | Source/CursesDialog/ccmake.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx index ce50845..2d1ef5c 100644 --- a/Source/CursesDialog/ccmake.cxx +++ b/Source/CursesDialog/ccmake.cxx @@ -19,6 +19,7 @@ #include "cmCursesMainForm.h" #include "cmCursesStandardIncludes.h" +#include <cmsys/Encoding.hxx> #include <form.h> @@ -78,8 +79,13 @@ void CMakeErrorHandler(const char* message, const char* title, bool&, void* clie self->AddError(message, title); } -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::FindCMakeResources(argv[0]); cmDocumentation doc; doc.addCMakeStandardDocSections(); |