summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/opencode/src/pty/index.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/opencode/src/pty/index.ts b/packages/opencode/src/pty/index.ts
index 73474ed4f..d01b2b02e 100644
--- a/packages/opencode/src/pty/index.ts
+++ b/packages/opencode/src/pty/index.ts
@@ -108,6 +108,12 @@ export namespace Pty {
TERM: "xterm-256color",
OPENCODE_TERMINAL: "1",
} as Record<string, string>
+
+ if (process.platform === "win32") {
+ env.LC_ALL = "C.UTF-8"
+ env.LC_CTYPE = "C.UTF-8"
+ env.LANG = "C.UTF-8"
+ }
log.info("creating session", { id, cmd: command, args, cwd })
const spawn = await pty()