fix: set language env when retrying

This commit is contained in:
iff 2023-08-11 15:39:51 +02:00
parent 498a134da3
commit 453511063a

View file

@ -232,6 +232,7 @@ pub fn confirm_suggestion(shell: &str, command: &str, highlighted: &str) -> Resu
.arg(shell) .arg(shell)
.arg("-c") .arg("-c")
.arg(command) .arg(command)
.env("LC_ALL", "C")
.output() .output()
.expect("failed to execute process"); .expect("failed to execute process");
let error_msg = String::from_utf8_lossy(&process.stderr); let error_msg = String::from_utf8_lossy(&process.stderr);
@ -260,6 +261,7 @@ pub fn confirm_suggestion(shell: &str, command: &str, highlighted: &str) -> Resu
let process = std::process::Command::new(shell) let process = std::process::Command::new(shell)
.arg("-c") .arg("-c")
.arg(command) .arg(command)
.env("LC_ALL", "C")
.output() .output()
.expect("failed to execute process"); .expect("failed to execute process");
let error_msg = String::from_utf8_lossy(&process.stderr); let error_msg = String::from_utf8_lossy(&process.stderr);