mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-17 06:48:11 +08:00
[vcpkg] Hack to fix codepage problems -- root cause unknown
This commit is contained in:
parent
581aea74fb
commit
5b42ec9b5d
@ -264,7 +264,14 @@ namespace vcpkg
|
||||
const std::wstring cmd = System::create_powershell_script_cmd(script);
|
||||
System::ExitCodeAndOutput ec_data = System::cmd_execute_and_capture_output(cmd);
|
||||
Checks::check_exit(VCPKG_LINE_INFO, ec_data.exit_code == 0, "Could not run script to detect VS 2017 instances");
|
||||
return Strings::split(ec_data.output, "\n");
|
||||
return Util::fmap(Strings::split(ec_data.output, "\n"), [](const std::string& line) {
|
||||
auto colon_pos = line.find(':');
|
||||
if (colon_pos != std::string::npos && colon_pos > 0)
|
||||
{
|
||||
return line.substr(colon_pos - 1);
|
||||
}
|
||||
return line;
|
||||
});
|
||||
}
|
||||
|
||||
static Optional<fs::path> get_VS2015_installation_instance()
|
||||
|
Loading…
x
Reference in New Issue
Block a user