mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 21:58:50 -05:00
ctest: improve Unicode support for launchers
Fix launcher behavior for international characters in the path on Windows.
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||||
#include "cmCTestLaunchReporter.h"
|
#include "cmCTestLaunchReporter.h"
|
||||||
|
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
#include "cmsys/FStream.hxx"
|
#include "cmsys/FStream.hxx"
|
||||||
#include "cmsys/Process.h"
|
#include "cmsys/Process.h"
|
||||||
#include "cmsys/RegularExpression.hxx"
|
#include "cmsys/RegularExpression.hxx"
|
||||||
@@ -48,8 +46,8 @@ void cmCTestLaunchReporter::ComputeFileNames()
|
|||||||
{
|
{
|
||||||
// We just passthru the behavior of the real command unless the
|
// We just passthru the behavior of the real command unless the
|
||||||
// CTEST_LAUNCH_LOGS environment variable is set.
|
// CTEST_LAUNCH_LOGS environment variable is set.
|
||||||
const char* d = getenv("CTEST_LAUNCH_LOGS");
|
std::string d;
|
||||||
if (!(d && *d)) {
|
if (!cmSystemTools::GetEnv("CTEST_LAUNCH_LOGS", d) || d.empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this->Passthru = false;
|
this->Passthru = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user