OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 patch class _WindowsCodePageDecoder { | 5 patch class _WindowsCodePageDecoder { |
6 /* patch */ static String _decodeBytes(List<int> bytes) | 6 /* patch */ static String _decodeBytes(List<int> bytes) |
7 native "SystemEncodingToString"; | 7 native "SystemEncodingToString"; |
8 } | 8 } |
9 | 9 |
10 | 10 |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 _stdin._sink._nativeSocket, | 444 _stdin._sink._nativeSocket, |
445 _stdout._stream._nativeSocket, | 445 _stdout._stream._nativeSocket, |
446 _stderr._stream._nativeSocket, | 446 _stderr._stream._nativeSocket, |
447 _exitHandler._nativeSocket); | 447 _exitHandler._nativeSocket); |
448 | 448 |
449 getOutput(output, encoding) { | 449 getOutput(output, encoding) { |
450 if (encoding == null) return output; | 450 if (encoding == null) return output; |
451 return encoding.decode(output); | 451 return encoding.decode(output); |
452 } | 452 } |
453 | 453 |
454 _stdin._sink.destroy(); | |
455 _processes.remove(_serviceId); | |
456 | |
457 return new _ProcessResult( | 454 return new _ProcessResult( |
458 result[0], | 455 result[0], |
459 result[1], | 456 result[1], |
460 getOutput(result[2], stdoutEncoding), | 457 getOutput(result[2], stdoutEncoding), |
461 getOutput(result[3], stderrEncoding)); | 458 getOutput(result[3], stderrEncoding)); |
462 } | 459 } |
463 | 460 |
464 bool _startNative(String path, | 461 bool _startNative(String path, |
465 List<String> arguments, | 462 List<String> arguments, |
466 String workingDirectory, | 463 String workingDirectory, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 const _ProcessResult(int this.pid, | 591 const _ProcessResult(int this.pid, |
595 int this.exitCode, | 592 int this.exitCode, |
596 this.stdout, | 593 this.stdout, |
597 this.stderr); | 594 this.stderr); |
598 | 595 |
599 final int pid; | 596 final int pid; |
600 final int exitCode; | 597 final int exitCode; |
601 final stdout; | 598 final stdout; |
602 final stderr; | 599 final stderr; |
603 } | 600 } |
OLD | NEW |