Skip to content

Commit 5d70cbf

Browse files
authored
doc: child_process: default encoding is buffer, not string
1 parent b345a17 commit 5d70cbf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/api/child_process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ changes:
175175
* `cwd` {string|URL} Current working directory of the child process.
176176
**Default:** `process.cwd()`.
177177
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
178-
* `encoding` {string} **Default:** `'utf8'`
178+
* `encoding` {string} **Default:** `'Buffer'`
179179
* `shell` {string} Shell to execute the command with. See
180180
[Shell requirements][] and [Default Windows shell][]. **Default:**
181181
`'/bin/sh'` on Unix, `process.env.ComSpec` on Windows.
@@ -360,7 +360,7 @@ changes:
360360
* `options` {Object}
361361
* `cwd` {string|URL} Current working directory of the child process.
362362
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
363-
* `encoding` {string} **Default:** `'utf8'`
363+
* `encoding` {string} **Default:** `'Buffer'`
364364
* `timeout` {number} **Default:** `0`
365365
* `maxBuffer` {number} Largest amount of data in bytes allowed on stdout or
366366
stderr. If exceeded, the child process is terminated and any output is

0 commit comments

Comments
 (0)