fix gtk-sudo in non-English linux (#9680)

change LC_ALL from C.UTF-8 to C

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2024-10-17 20:05:13 +08:00 committed by GitHub
parent ae8dfe84a0
commit defb3e6c73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -505,7 +505,7 @@ fn child(su_user: Option<String>, args: Vec<String>) -> ResultType<()> {
command = format!("'{}'", quote_shell_arg(&command, false)); command = format!("'{}'", quote_shell_arg(&command, false));
} }
params.push(command); 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 { if let Some(user) = &su_user {
let su_subcommand = params let su_subcommand = params