| Index: runtime/bin/process_patch.dart
|
| diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart
|
| index f74e814af0856df0fb184d4e0ee76b6960e982d8..ba50c9f5a0e67730efd96c42b63bdc4668a311a1 100644
|
| --- a/runtime/bin/process_patch.dart
|
| +++ b/runtime/bin/process_patch.dart
|
| @@ -336,10 +336,6 @@ Future<ProcessResult> _runNonInteractiveProcess(String path,
|
| bool runInShell,
|
| Encoding stdoutEncoding,
|
| Encoding stderrEncoding) {
|
| - // Extract output encoding options and verify arguments.
|
| - if (stdoutEncoding == null) stdoutEncoding = Encoding.BINARY;
|
| - if (stderrEncoding == null) stderrEncoding = Encoding.BINARY;
|
| -
|
| // Start the underlying process.
|
| return Process.start(path,
|
| arguments,
|
| @@ -353,7 +349,7 @@ Future<ProcessResult> _runNonInteractiveProcess(String path,
|
|
|
| // Setup stdout and stderr handling.
|
| Future foldStream(Stream<List<int>> stream, Encoding encoding) {
|
| - if (encoding == Encoding.BINARY) {
|
| + if (encoding == null) {
|
| return stream
|
| .fold(
|
| new _BufferList(),
|
|
|