Use /etc/sysconfig/i18n file if it exists to set up correct locale

darcs-hash:20060111142340-ac50b-b0483ffd46eb6eb31defbd69b821fc088ff30004.gz
This commit is contained in:
axel 2006-01-12 00:23:40 +10:00
parent d4034fc253
commit 72bb5ae06f

View file

@ -41,6 +41,10 @@ if status --is-login
if not set -q LANG >/dev/null
set -gx LANG en_US.UTF-8
end
if test -f /etc/sysconfig/i18n
eval (cat /etc/sysconfig/i18n |sed -ne 's/^\([a-zA-Z]*\)=\(.*\)$/set -gx \1 \2;/')
end
end