Skip to content

Commit

Permalink
fix: Add process.stdout.setEncoding
Browse files Browse the repository at this point in the history
  • Loading branch information
mottsu committed Oct 23, 2020
1 parent fc9d680 commit f0d722f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const exec = (command, args, stdin, cwd) => {
process.stdin.end()
}

process.stdout.setEncoding('utf-8');
process.stdout.on('data', data => {
stdout += data
})
Expand Down

0 comments on commit f0d722f

Please sign in to comment.