summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestLaunchReporter.cxx
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2020-09-28 16:55:45 (GMT)
committerZack Galbreath <zack.galbreath@kitware.com>2020-09-28 17:13:52 (GMT)
commita8b7dd061b1c289ffd8f7f5c2e82efc0b57a68e8 (patch)
treec39b1d504e2e002ee41a0e5aa147721af063baae /Source/CTest/cmCTestLaunchReporter.cxx
parentab9ad2a6a0addcb1366b68c0a28df7e1c9c9bc6f (diff)
downloadCMake-a8b7dd061b1c289ffd8f7f5c2e82efc0b57a68e8.zip
CMake-a8b7dd061b1c289ffd8f7f5c2e82efc0b57a68e8.tar.gz
CMake-a8b7dd061b1c289ffd8f7f5c2e82efc0b57a68e8.tar.bz2
ctest: improve Unicode support for launchers
Fix launcher behavior for international characters in the path on Windows.
Diffstat (limited to 'Source/CTest/cmCTestLaunchReporter.cxx')
-rw-r--r--Source/CTest/cmCTestLaunchReporter.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestLaunchReporter.cxx b/Source/CTest/cmCTestLaunchReporter.cxx
index 41e725f..6ec7d0e 100644
--- a/Source/CTest/cmCTestLaunchReporter.cxx
+++ b/Source/CTest/cmCTestLaunchReporter.cxx
@@ -2,8 +2,6 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCTestLaunchReporter.h"
-#include <cstdlib>
-
#include "cmsys/FStream.hxx"
#include "cmsys/Process.h"
#include "cmsys/RegularExpression.hxx"
@@ -48,8 +46,8 @@ void cmCTestLaunchReporter::ComputeFileNames()
{
// We just passthru the behavior of the real command unless the
// CTEST_LAUNCH_LOGS environment variable is set.
- const char* d = getenv("CTEST_LAUNCH_LOGS");
- if (!(d && *d)) {
+ std::string d;
+ if (!cmSystemTools::GetEnv("CTEST_LAUNCH_LOGS", d) || d.empty()) {
return;
}
this->Passthru = false;