This repository was archived by the owner on Oct 1, 2024. It is now read-only.
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Output strings are garbled in Japanese environment #1203
Closed
Description
version 0.3.5 (this bug occurred at least 0.3.4 too)
on Windows 10 (Build 1909) Japanese edition
Workaround is comment the line 215 of out/src/common/util.js out;
const child = childProcess.spawn(command, args, options);
let codepage = "65001";
/*
if (os.platform() === "win32") {
try {
const chcp = childProcess.execSync("chcp.com");
codepage = chcp.toString().split(":").pop().trim();
}
catch (error) {
outputChannel_1.arduinoChannel.warning(`Defaulting to code page 850 because chcp.com failed.\
\rEnsure your path includes %SystemRoot%\\system32\r${error.message}`);
codepage = "850";
}
}
*/
if (outputChannel) {
child.stdout.on("data", (data) => {
(Thanks nori-dev-akg san on the article)
This code seems to change UTF-8(codepage 65001) strings to Shift-JIS or something even it is not required by vscode.