mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 08:21:50 +00:00
fix(pty): Add UTF-8 encoding defaults for Windows PTY (#11459)
This commit is contained in:
parent
ac254fb442
commit
f73f88fb56
1 changed files with 6 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue