Files
node/lib
killagu 7d81f5d143 child_process: fix exec set stdout.setEncoding
cp.exec decide to use `_stdout`(_stdout is string) or
`Buffer.concat(_stdout)`(_stdout is buffer array) by options.encoding.
but std(out|err) encoding can be changed. If encoding is changed to
not null, `_stdout` will become string, and `Buffer.concat(_stdout)`
will throw TypeError. This patch will fix it, use
options.encoding and `std(out|err)._readableState.encoding`.

PR-URL: https://github.com/nodejs/node/pull/18976
Fixes: https://github.com/nodejs/node/issues/18969
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2018-05-18 15:20:28 +02:00
..
2018-05-17 17:59:25 +04:00
2018-05-10 15:27:32 +02:00
2018-04-13 19:59:44 +02:00
2018-03-05 19:51:30 +01:00
2018-04-05 04:46:26 +08:00
2018-04-14 10:55:35 -07:00
2017-08-28 00:39:42 +04:00
2018-04-03 13:57:41 -07:00
2018-03-05 19:51:30 +01:00
2018-04-16 16:02:12 +02:00
2018-05-02 22:32:24 -07:00
2018-04-05 04:46:26 +08:00
2018-04-26 19:42:48 +02:00