Skip to content

Commit ef6d972

Browse files
authored
change code page to match the variable "codepage", and fix microsoft#875
1 parent 3bb7b14 commit ef6d972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export function spawn(
208208
let codepage = "65001";
209209
if (os.platform() === "win32") {
210210
try {
211-
const chcp = child_process.execSync("chcp.com");
211+
const chcp = child_process.execSync(`chcp.com ${codepage}`);
212212
codepage = chcp.toString().split(":").pop().trim();
213213
} catch (error) {
214214
arduinoChannel.warning(`Defaulting to code page 850 because chcp.com failed.\

0 commit comments

Comments
 (0)