Skip to content

Non-ASCII output of cppbuild task is corrupted. #8518

Description

This is based on: #8514

The C/C++ extension will invoke a build command line directly in CustomBuildTaskTerminal in cppBuildTaskProvider.ts. It uses "shell": true, and assumes the stdout/stderr of the executed process is UTF-8 encoded. It passes the text it reads along to VS Code, which displays it in a terminal. In the case of cl.exe on non-US systems (and likely other scenarios), that text is encoded with the current code page, not UTF-8. The text output to the terminal will appear incorrect if it contains non-ASCII characters. This is an issue with the "cppbuild" task type but is not an issue for VS Code's "shell" and "process" task types, which it handles internally.

Metadata

Metadata

Labels

Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions