mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08: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
|
@ -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
|
# NOTE: Slackware puts the locale in /etc/profile.d/lang.sh, which we can't use because it's a
|
||||||
# full POSIX-shell script.
|
# full POSIX-shell script.
|
||||||
set -l user_cfg_dir (set -q XDG_CONFIG_HOME; and echo $XDG_CONFIG_HOME; or echo ~/.config)
|
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
|
if test -r $f
|
||||||
while read -l kv
|
while read -l kv
|
||||||
set kv (string split '=' -- $kv)
|
set kv (string split '=' -- $kv)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user