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

Unified Diff: tests/standalone/io/console_unicode_test.dart

Issue 2698813002: [dart:io][windows] Make unicode characters display correctly. (Closed)
Patch Set: Address comments Created 3 years, 10 months 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 | « sdk/lib/io/stdio.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/console_unicode_test.dart
diff --git a/tests/standalone/io/console_unicode_test.dart b/tests/standalone/io/console_unicode_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d681ff2c717efe276dcdbe27864dce5d83508a49
--- /dev/null
+++ b/tests/standalone/io/console_unicode_test.dart
@@ -0,0 +1,31 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// 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.
+
+import 'dart:convert';
+import 'dart:io';
+
+main() {
+ String spades = "These are three black spades: ♠♠♠";
+ String german = "German characters: aäbcdefghijklmnoöpqrsßtuüvwxyz";
+
+ stdout.writeln(spades);
+ stdout.writeln(german);
+ print(spades);
+ print(german);
+
+ stdout.add(spades.runes.toList());
+ stdout.writeln();
+ stdout.add(german.runes.toList());
+ stdout.writeln();
+
+ stdout.add(spades.codeUnits);
+ stdout.writeln();
+ stdout.add(german.codeUnits);
+ stdout.writeln();
+
+ stdout.writeln(spades);
+ stdout.writeln(german);
+ print(spades);
+ print(german);
+}
« no previous file with comments | « sdk/lib/io/stdio.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698