build fix

上级 6d89d7a8
......@@ -167,9 +167,7 @@ export class Session extends BaseSession {
}
if (!pty) {
// filter out empty env
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { '': _, ...env } = {
const env = {
...process.env,
TERM: 'xterm-256color',
TERM_PROGRAM: 'Terminus',
......@@ -177,6 +175,8 @@ export class Session extends BaseSession {
...this.config.store.terminal.environment || {},
}
delete env['']
if (process.platform === 'darwin' && !process.env.LC_ALL) {
const locale = process.env.LC_CTYPE ?? 'en_US.UTF-8'
Object.assign(env, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册