fix: stdout and stderr encoding on Windows (#14559)

This commit is contained in:
David Sherret 2022-05-11 12:48:38 -04:00 committed by GitHub
parent b67f874b3f
commit 0ea6b51bf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 262 additions and 187 deletions

View file

@ -93,10 +93,7 @@ impl StdioOrRid {
) -> Result<std::process::Stdio, AnyError> {
match &self {
StdioOrRid::Stdio(val) => Ok(val.as_stdio()),
StdioOrRid::Rid(rid) => {
let file = StdFileResource::clone_file(state, *rid)?;
Ok(file.into())
}
StdioOrRid::Rid(rid) => StdFileResource::as_stdio(state, *rid),
}
}
}