File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
packages/flutter_tools/lib/src/base Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -116,18 +116,19 @@ class StdoutLogger extends Logger {
116
116
/// A [StdoutLogger] which replaces Unicode characters that cannot be printed to
117
117
/// the Windows console with alternative symbols.
118
118
///
119
- /// This exists because of https://github.com/dart-lang/sdk/issues/28571.
119
+ /// By default, Windows uses either "Consolas" or "Lucida Console" as fonts to
120
+ /// render text in the console. Both fonts only have a limited character set.
121
+ /// Unicode characters, that are not available in either of the two default
122
+ /// fonts, should be replaced by this class with printable symbols. Otherwise,
123
+ /// they will show up as the unrepresentable character symbol '�'.
120
124
class WindowsStdoutLogger extends StdoutLogger {
121
125
122
126
@override
123
127
void writeToStdOut (String message) {
124
128
stdout.write (message
125
129
.replaceAll ('✗' , 'X' )
126
- .replaceAll ('✓' , '+' )
127
- .replaceAll ('•' , '*' )
130
+ .replaceAll ('✓' , '√' )
128
131
);
129
- // TODO(goderbauer): find a way to replace all other non-printable characters
130
- // with the unrepresentable character symbol '�'
131
132
}
132
133
}
133
134
You can’t perform that action at this time.
0 commit comments