mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +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;
|
||||
|
||||
fn main() {
|
||||
std::env::set_var("LC_ALL", "C");
|
||||
args::handle_args();
|
||||
|
||||
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)
|
||||
.arg("-c")
|
||||
.arg(command)
|
||||
.env("LC_ALL", "C")
|
||||
.output()
|
||||
.expect("failed to execute process");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue