Skip to content

Commit 0fa5c3c

Browse files
committed
Fix UTF-8 encoding issue in integrated terminal
- Set LANG and LC_ALL environment variables to en_US.UTF-8 - Resolves Encoding::CompatibilityError in Ruby/CocoaPods commands - Ensures consistent UTF-8 encoding across all terminal sessions This change addresses the terminal encoding issue where commands like 'pod install' would fail due to incompatible character encoding. The fix ensures all integrated terminals are initialized with proper UTF-8 locale settings.
1 parent 7ee90f9 commit 0fa5c3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/integrations/terminal/ExecaTerminalProcess.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ export class ExecaTerminalProcess extends BaseTerminalProcess {
4040
shell: true,
4141
cwd: this.terminal.getCurrentWorkingDirectory(),
4242
all: true,
43+
env: {
44+
...process.env,
45+
// Ensure UTF-8 encoding for Ruby, CocoaPods, etc.
46+
LANG: "en_US.UTF-8",
47+
LC_ALL: "en_US.UTF-8",
48+
},
4349
})`${command}`
4450

4551
this.pid = subprocess.pid

0 commit comments

Comments
 (0)