Skip to content

Commit f0d722f

Browse files
committedOct 23, 2020
fix: Add process.stdout.setEncoding
1 parent fc9d680 commit f0d722f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/exec.js

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const exec = (command, args, stdin, cwd) => {
1818
process.stdin.end()
1919
}
2020

21+
process.stdout.setEncoding('utf-8');
2122
process.stdout.on('data', data => {
2223
stdout += data
2324
})

0 commit comments

Comments
 (0)
Please sign in to comment.