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
Commit 20110b7
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): read Windows CLI output in UTF-8, not the ANSI code page
Python CLIs such as az are not in UTF-8 mode, so a piped stdout is encoded in the system ANSI code page: every non-ASCII character in Azure DevOps PR text rendered as U+FFFD. Worse, the ANSI code page cannot carry every character, and az then drops all non-ASCII text of any response that holds one, which loses titles outright.
Run the Azure CLI's own interpreter with -X utf8 when it is the MSI layout, so az writes UTF-8 and neither failure happens. -X is an argv flag, so the launcher's -I/-E cannot suppress it the way it does PYTHONUTF8. Installations T3 cannot upgrade keep the documented fallback: decode output that is not valid UTF-8 with the host ANSI code page, opting in per command through ProcessRunInput.windowsAnsiOutput. A truncated buffer has a cut multi-byte tail ignored before the encoding is judged. The code page query runs %SystemRoot%\\System32\\reg.exe rather than a bare reg.
0 commit comments