diff options
author | Brad King <brad.king@kitware.com> | 2014-07-18 14:56:53 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-07-18 14:56:53 (GMT) |
commit | 0aa7d9dc109d429861fd86c893821672eb5228b8 (patch) | |
tree | 944cb5d7cdb847ddebb5392ca3d173d793dc5c48 /Tests/CTestTestMemcheck | |
parent | bbd930ea3c7fbc376d2f112ae7cd373a27cdf5bc (diff) | |
parent | 09b2ac38d15509ae8d5c54adbcef050846b56210 (diff) | |
download | CMake-0aa7d9dc109d429861fd86c893821672eb5228b8.zip CMake-0aa7d9dc109d429861fd86c893821672eb5228b8.tar.gz CMake-0aa7d9dc109d429861fd86c893821672eb5228b8.tar.bz2 |
Merge topic 'encoding-ctest-fixes'
09b2ac38 Encoding: Fix a few encoding problems with ctest.
Diffstat (limited to 'Tests/CTestTestMemcheck')
-rw-r--r-- | Tests/CTestTestMemcheck/memtester.cxx.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Tests/CTestTestMemcheck/memtester.cxx.in b/Tests/CTestTestMemcheck/memtester.cxx.in index 55a34e3..43c0ba7 100644 --- a/Tests/CTestTestMemcheck/memtester.cxx.in +++ b/Tests/CTestTestMemcheck/memtester.cxx.in @@ -1,11 +1,19 @@ #include <cmSystemTools.h> +#include <cmsys/Encoding.hxx> #include <string> +#include <locale.h> #define RETVAL @_retval@ int -main(int argc, char **argv) +main(int ac, char **av) { + setlocale(LC_CTYPE, ""); + cmsys::Encoding::CommandLineArguments args = + cmsys::Encoding::CommandLineArguments::Main(ac, av); + int argc = args.argc(); + const char* const* argv = args.argv(); + std::string exename = argv[0]; std::string logarg; bool nextarg = false; |