Re: /etc/environment
> Anyway, there is one problem with your approach namely that it doesn't do
> what I want. At least it didn't when I tried yome years ago. The problem is
> that the locale initilisation in my shell is done before the environment
> variable is set. So I have to have LC_ALL set before the shell starts.
> That's what /etc/environment is for.
polya:~ $ dpkg -l bash
Desired=Unknown/Install/Remove/Purge
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===============-==============-============================================
ii bash 2.01.1-4.1 The GNU Bourne Again SHell
polya:~ $ echo $LC_ALL
polya:~ $ export LC_ALL=de_DE
polya:~ $ gettext libc "File name too long"; echo
Der Dateiname ist zu lang
polya:~ $ gettext a b c
gettext: zu viele Argumente
polya:~ $
Is this the behaviour you want? The slink bash does not contain the
l10n messages files, so I haven't been able to check whether bash
itself responds to this approach, but I believe it does.
Julian
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Reply to: