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
{{ message }}
Repository navigation
Non-ASCII link hook output is corrupted by dart build cli on Windows #3593
The link hook therefore produces correct Chinese output when invoked directly, but the output is corrupted when invoked and displayed through dart build cli
My guess is that the hook correctly decodes the original GBK output and writes it to stdout as UTF-8. dart build cli then captures those UTF-8 bytes but decodes them again using the Windows system encoding (GBK), resulting in mojibake.
Activity
dzylikecode commentedon Aug 28, 2026
My guess is that the hook correctly decodes the original GBK output and writes it to stdout as UTF-8.
dart build clithen captures those UTF-8 bytes but decodes them again using the Windows system encoding (GBK), resulting in mojibake.dcharkes commentedon Aug 28, 2026
Hi @dzylikecode Thanks for the report! 20 years of software engineering, and I'm still fighting mojibake! 😆
The implementation for this is in
I don't immediately know where the error might be in those two locations.
Would you be able to try to build the Dart SDK locally find a fix and supply a PR?