Adjust locale settings for local usage

This commit is contained in:
Alexander Hess 2026-08-28 15:03:34 +02:00
commit 417ed15f47
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
6 changed files with 187 additions and 22 deletions

14
.local/bin/ssh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
# Mask the exotic `LC_*` values from ~/.config/shell/locale on remote hosts
#
# Debian's /etc/ssh/ssh_config forwards them via `SendEnv LANG LC_*`,
# which cannot be cleared from ~/.ssh/config
# => Send `LC_ALL` on top, which overrides all `LC_*` and `LANG` remotely
#
# `C.UTF-8` is built into `glibc` and thus available on every host
#
# Found via the `$PATH` by `git`, `rsync`, `sshfs`, scripts, and GUI apps;
# `scp` and `sftp` call /usr/bin/ssh directly and have their own wrappers
exec /usr/bin/ssh -o SetEnv=LC_ALL=C.UTF-8 "$@"