Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

fix #875 #1237

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export function spawn(
let codepage = "65001";
if (os.platform() === "win32") {
try {
const chcp = child_process.execSync("chcp.com");
const chcp = child_process.execSync(`chcp.com ${codepage}`);
codepage = chcp.toString().split(":").pop().trim();
} catch (error) {
arduinoChannel.warning(`Defaulting to code page 850 because chcp.com failed.\
Expand Down