mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 15:45:11 +01:00
fix: set language env only when getting output
This commit is contained in:
parent
bc27f1e882
commit
10a23a7e09
2 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,6 @@ mod style;
|
||||||
mod suggestions;
|
mod suggestions;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
std::env::set_var("LC_ALL", "C");
|
|
||||||
args::handle_args();
|
args::handle_args();
|
||||||
|
|
||||||
let shell = std::env::var("_PR_SHELL").expect(
|
let shell = std::env::var("_PR_SHELL").expect(
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ pub fn command_output(shell: &str, command: &str) -> String {
|
||||||
let output = std::process::Command::new(shell)
|
let output = 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");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue