You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run() and runAsync() of run.dart module shows garbled text for flutter doctor as following
[竏咯 Flutter (Channel
instead of
[√] Flutter (Channel...
I can generate this garbled text with encoding "[√]" with utf8 and then decoding it with systemEncoding.
How to reproduce
Run following in Windows which code point settings is not UTF-8 (chcp shows a number other than 65001):
run('flutter', arguments: ['doctor'])
Note that I found that normal texts are shown with explicitly specifying utf8 for RunOptions.stdoutEncoding and RunOptions.stderrEncoding, and systemEncoding is properly set to ANSI encoding of my environment.
Workaround
We can avoid this issue with passing RunOptions(stdoutEncoding: utf8, stderrEncoding: utf8, ...) for run() and runAsync().
Environments
grinder: 0.9.0
Windows: Windows10 21H1 (build 19043.1237)
Result of chcp: 932
The text was updated successfully, but these errors were encountered:
run()
andrunAsync()
ofrun.dart
module shows garbled text forflutter doctor
as followinginstead of
I can generate this garbled text with encoding "[√]" with
utf8
and then decoding it withsystemEncoding
.How to reproduce
Run following in Windows which code point settings is not UTF-8 (
chcp
shows a number other than65001
):Note that I found that normal texts are shown with explicitly specifying
utf8
forRunOptions.stdoutEncoding
andRunOptions.stderrEncoding
, andsystemEncoding
is properly set to ANSI encoding of my environment.Workaround
We can avoid this issue with passing
RunOptions(stdoutEncoding: utf8, stderrEncoding: utf8, ...)
forrun()
andrunAsync()
.Environments
chcp
: 932The text was updated successfully, but these errors were encountered: