Chromium Code Reviews
Description[dart:io][windows] Make unicode characters display correctly.
This change has two pieces.
- Set the console code page to UTF8.
- This makes strings printed with print() display correctly
- Set the file translation mode to _O_WTEXT when writing to a
stdout or stderr that is connected to a console.
- This makes strings printed with e.g. stdout.writeln()
display correctly.
fixes #28571
R=asiva@google.com, fschneider@google.com
Committed: https://github.com/dart-lang/sdk/commit/bc079538666c5a9b1fff2f4848baf2ddef985932
Patch Set 1 #Patch Set 2 : Use _setmode correctly #Patch Set 3 : Remove setting translation mode from the Dart API #Patch Set 4 : Work on making tests pass #Patch Set 5 : Cleanup. Formatting. #Patch Set 6 : Make tests pass #
Total comments: 10
Patch Set 7 : Address comments #Patch Set 8 : Address comments #
Messages
Total messages: 12 (3 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||