From f320f5f7104714145728730e7dc32f31a4e4c27e Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 10 Mar 2006 23:40:39 +1000 Subject: Move LANG init back to /etc where it belongs. IT was temporarily moved earlier to do some translations at init time, but that is no longer needed darcs-hash:20060310134039-ac50b-e826176a9d574b26235013384963f2dd7e9e9457.gz --- etc/fish.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'etc') diff --git a/etc/fish.in b/etc/fish.in index ef9bcf4d..f4bb6516 100644 --- a/etc/fish.in +++ b/etc/fish.in @@ -38,6 +38,21 @@ for i in $path_list end +# +# Set some value for LANG if nothing was set before, and this is a +# login shell. Also check for i18n information in /etc/sysconfig/i18n +# + +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;/p') + end +end + # # Put linux console in unicode mode. Should this be done in any other # situation as well? -- cgit v1.2.3