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/CursesDialog | |
parent | 7fb2b806626b9af791d7372d2ff82b2cf1503237 (diff) | |
download | cmake-a1e542f19551072f101404e16e1dad901189f039.tar.gz |
Use Encoding::CommandLineArguments for main() functions.
Diffstat (limited to 'Source/CursesDialog')
-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 ce508452ac..2d1ef5c383 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(); |