Setting LANGUAGE parameters
Karl
karlok at fastmail.fm
Tue Sep 25 18:05:27 UTC 2007
Dotan Cohen wrote:
> On 25/09/2007, Karl <karlok at fastmail.fm> wrote:
>> Dotan Cohen wrote:
>>> Where does one store language parameters that programs (specifically
>>> wine) use? I have been putting "export LC_ALL=he_IL.UTF-8" in
>>> ~/.bashrc, but now I know that only Konsole uses this file. What file
>>> do other programs use? I do have the proper settings in Kcontrol, but
>>> wine does not use the KDE config files.
>>>
>>> Thanks in advance.
>>>
>>> Dotan Cohen
>> I think what you are looking for is /etc/environment. This is what is in
>> mine:
>>
>> PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
>> LANG="en_CA.UTF-8"
>> LC_TIME="en_DK.utf8"
>>
>> Karl
>>
>
> Thanks, Karl, but what is the user's equivilent? I don't want to
> change it system-wide.
>
From the bash man page:
When bash is invoked as an interactive login shell, or as a
non-interactive shell with the --login option, it first reads and
executes commands from the file /etc/profile, if that file exists. After
reading that file, it looks for ~/.bash_profile, ~/.bash_login, and
~/.profile, in that order, and reads and executes commands from the
first one that exists and is readable. The --noprofile option may be
used when the shell is started to inhibit this behavior.
When a login shell exits, bash reads and executes commands from the
file ~/.bash_logout, if it exists.
When an interactive shell that is not a login shell is started, bash
reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if
these files exist. This may be inhibited by using the --norc option. The
--rcfile file option will force bash to read and execute commands from
file instead of /etc/bash.bashrc and ~/.bashrc.
So my guess would be that ~/.bash_profile should do the trick.
Karl
More information about the kubuntu-users
mailing list