Skip to content

Commit

Permalink
fix gtk-sudo in non-English linux (rustdesk#9680)
Browse files Browse the repository at this point in the history
change LC_ALL from C.UTF-8 to C

Signed-off-by: 21pages <[email protected]>
  • Loading branch information
21pages authored Oct 17, 2024
1 parent ae8dfe8 commit defb3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/gtk_sudo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ fn child(su_user: Option<String>, args: Vec<String>) -> 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
Expand Down

0 comments on commit defb3e6

Please sign in to comment.