diff options
author | Brad King <brad.king@kitware.com> | 2014-01-07 14:39:15 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-01-07 14:39:15 (GMT) |
commit | 91dcc9bef390f6644e1a357ed2226f350742f49b (patch) | |
tree | a5df1c5b70dd5d671e92f4454404dc71b2b4698e /Source/CursesDialog | |
parent | 69ccc951cc64d66b56fc1c0ced8f6307ccaee756 (diff) | |
parent | a1e542f19551072f101404e16e1dad901189f039 (diff) | |
download | CMake-91dcc9bef390f6644e1a357ed2226f350742f49b.zip CMake-91dcc9bef390f6644e1a357ed2226f350742f49b.tar.gz CMake-91dcc9bef390f6644e1a357ed2226f350742f49b.tar.bz2 |
Merge topic 'unicode-main'
a1e542f 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 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(); |