mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix: stdout and stderr encoding on Windows (#14559)
This commit is contained in:
parent
b67f874b3f
commit
0ea6b51bf0
5 changed files with 262 additions and 187 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue