summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestVC.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-16 12:46:48 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-11-16 12:46:48 (GMT)
commit2a663ebce10fb9d393594e28f8ecc870488f6eba (patch)
tree90f256dabded5657b3d8276776335ad5afd7b181 /Source/CTest/cmCTestVC.cxx
parentb6da714af79578bfdcbfe990addc557448b51eea (diff)
parentf55fcdc8598be03d0622dd5a7b96d33a6613a296 (diff)
downloadCMake-2a663ebce10fb9d393594e28f8ecc870488f6eba.zip
CMake-2a663ebce10fb9d393594e28f8ecc870488f6eba.tar.gz
CMake-2a663ebce10fb9d393594e28f8ecc870488f6eba.tar.bz2
Merge topic 'childEncoding'
f55fcdc8 CTest: Use UTF-8 encoding for output from Git 40bd42df Add Encoding option for RunChild, RunMakeCommand and RunProcess 595feb32 Windows: Encode child process output to internally-used encoding 96103972 Add cmProcessOutput class to be used for decoding text data 92c865b8 cmCTestBuildHandler: Use size_t in ProcessBuffer length argument
Diffstat (limited to 'Source/CTest/cmCTestVC.cxx')
-rw-r--r--Source/CTest/cmCTestVC.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestVC.cxx b/Source/CTest/cmCTestVC.cxx
index 7a2fa69..444c43d 100644
--- a/Source/CTest/cmCTestVC.cxx
+++ b/Source/CTest/cmCTestVC.cxx
@@ -76,7 +76,8 @@ bool cmCTestVC::InitialCheckout(const char* command)
}
bool cmCTestVC::RunChild(char const* const* cmd, OutputParser* out,
- OutputParser* err, const char* workDir)
+ OutputParser* err, const char* workDir,
+ Encoding encoding)
{
this->Log << this->ComputeCommandLine(cmd) << "\n";
@@ -84,7 +85,7 @@ bool cmCTestVC::RunChild(char const* const* cmd, OutputParser* out,
cmsysProcess_SetCommand(cp, cmd);
workDir = workDir ? workDir : this->SourceDirectory.c_str();
cmsysProcess_SetWorkingDirectory(cp, workDir);
- this->RunProcess(cp, out, err);
+ this->RunProcess(cp, out, err, encoding);
int result = cmsysProcess_GetExitValue(cp);
cmsysProcess_Delete(cp);
return result == 0;
@@ -102,7 +103,7 @@ std::string cmCTestVC::ComputeCommandLine(char const* const* cmd)
}
bool cmCTestVC::RunUpdateCommand(char const* const* cmd, OutputParser* out,
- OutputParser* err)
+ OutputParser* err, Encoding encoding)
{
// Report the command line.
this->UpdateCommandLine = this->ComputeCommandLine(cmd);
@@ -112,7 +113,7 @@ bool cmCTestVC::RunUpdateCommand(char const* const* cmd, OutputParser* out,
}
// Run the command.
- return this->RunChild(cmd, out, err);
+ return this->RunChild(cmd, out, err, CM_NULLPTR, encoding);
}
std::string cmCTestVC::GetNightlyTime()