From 086d3889329da33f3eb4fbf73d91702f90d4a0a1 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 18 Dec 2021 08:57:22 +0100 Subject: [PATCH] Also read /etc/default/locale for the locale Apparently a thing on Debian systems (whyyyyy) Fixes #8557 --- share/functions/__fish_set_locale.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_set_locale.fish b/share/functions/__fish_set_locale.fish index 75c090597..dec2919ca 100644 --- a/share/functions/__fish_set_locale.fish +++ b/share/functions/__fish_set_locale.fish @@ -53,7 +53,7 @@ function __fish_set_locale # NOTE: Slackware puts the locale in /etc/profile.d/lang.sh, which we can't use because it's a # full POSIX-shell script. set -l user_cfg_dir (set -q XDG_CONFIG_HOME; and echo $XDG_CONFIG_HOME; or echo ~/.config) - for f in $user_cfg_dir/locale.conf /etc/locale.conf /etc/env.d/02locale /etc/sysconfig/i18n + for f in $user_cfg_dir/locale.conf /etc/locale.conf /etc/env.d/02locale /etc/sysconfig/i18n /etc/default/locale if test -r $f while read -l kv set kv (string split '=' -- $kv)