Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1115)

Unified Diff: runtime/bin/process_patch.dart

Issue 11446067: Revert "By default use current code page on Windows for decoding string" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/process.cc ('k') | sdk/lib/_internal/compiler/implementation/lib/io_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_patch.dart
diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart
index 6646d07a18a6ca70f4e6e01b94323394c03ca4bd..4cdc85333ae9c0cf21325d3eaeeca963bab520d6 100644
--- a/runtime/bin/process_patch.dart
+++ b/runtime/bin/process_patch.dart
@@ -2,18 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-patch class _WindowsCodePageDecoder {
- /* patch */ static String _decodeBytes(List<int> bytes)
- native "SystemEncodingToString";
-}
-
-
-patch class _WindowsCodePageEncoder {
- /* patch */ static List<int> _encodeString(String string)
- native "StringToSystemEncoding";
-}
-
-
patch class Process {
/* patch */ static Future<Process> start(String executable,
List<String> arguments,
@@ -290,8 +278,8 @@ class _NonInteractiveProcess {
ProcessOptions options) {
_completer = new Completer<ProcessResult>();
// Extract output encoding options and verify arguments.
- var stdoutEncoding = Encoding.SYSTEM;
- var stderrEncoding = Encoding.SYSTEM;
+ var stdoutEncoding = Encoding.UTF_8;
+ var stderrEncoding = Encoding.UTF_8;
if (options != null) {
if (options.stdoutEncoding != null) {
stdoutEncoding = options.stdoutEncoding;
« no previous file with comments | « runtime/bin/process.cc ('k') | sdk/lib/_internal/compiler/implementation/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698