mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Also read /etc/default/locale for the locale
Apparently a thing on Debian systems (whyyyyy) Fixes #8557
This commit is contained in:
parent
ca6e9f9fe7
commit
086d388932
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue