From defb3e6c73c4fc74bf315cc238bcb5339d24e887 Mon Sep 17 00:00:00 2001 From: 21pages Date: Thu, 17 Oct 2024 20:05:13 +0800 Subject: [PATCH] fix gtk-sudo in non-English linux (#9680) change LC_ALL from C.UTF-8 to C Signed-off-by: 21pages --- src/platform/gtk_sudo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/gtk_sudo.rs b/src/platform/gtk_sudo.rs index 0105b335c311..9aeea1e2b01c 100644 --- a/src/platform/gtk_sudo.rs +++ b/src/platform/gtk_sudo.rs @@ -505,7 +505,7 @@ fn child(su_user: Option, args: Vec) -> ResultType<()> { command = format!("'{}'", quote_shell_arg(&command, false)); } params.push(command); - std::env::set_var("LC_ALL", "C.UTF-8"); + std::env::set_var("LC_ALL", "C"); if let Some(user) = &su_user { let su_subcommand = params