GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify child_process stdout/stderr types · nodejs/node@44bc638

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • child_process.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/child_process.md‎

Copy file name to clipboardExpand all lines: doc/api/child_process.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ The `stdout` and `stderr` arguments passed to the callback will contain the
164164
stdout and stderr output of the child process. By default, Node.js will decode
165165
the output as UTF-8 and pass strings to the callback. The `encoding` option
166166
can be used to specify the character encoding used to decode the stdout and
167-
stderr output. If `encoding` is `'buffer'`, `Buffer` objects will be passed to
168-
the callback instead.
167+
stderr output. If `encoding` is `'buffer'`, or an unrecognized character
168+
encoding, `Buffer` objects will be passed to the callback instead.
169169

170170
The `options` argument may be passed as the second argument to customize how
171171
the process is spawned. The default options are:
@@ -233,8 +233,8 @@ The `stdout` and `stderr` arguments passed to the callback will contain the
233233
stdout and stderr output of the child process. By default, Node.js will decode
234234
the output as UTF-8 and pass strings to the callback. The `encoding` option
235235
can be used to specify the character encoding used to decode the stdout and
236-
stderr output. If `encoding` is `'buffer'`, `Buffer` objects will be passed to
237-
the callback instead.
236+
stderr output. If `encoding` is `'buffer'`, or an unrecognized character
237+
encoding, `Buffer` objects will be passed to the callback instead.
238238

239239
### child_process.fork(modulePath[, args][, options])
240240
<!-- YAML

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.