Re: LANG in /etc/environment and in .bashrc

From: Robin Gerard (robin.jag_at_free.fr)
Date: 07/31/03

  • Next message: Micha Feigin: "Re: swsusp for Debian was: Activating ACPI supend and ACPI Hibernate in klaptop"
    Date: Wed, 30 Jul 2003 23:52:14 +0000
    To: debian-user@lists.debian.org
    
    

    On Wed, Jul 30, 2003 at 12:27:00AM +0200, Andreas Janssen wrote:
    > Hello
    >
    > Robin Gerard (<robin.jag@free.fr>) wrote:
    >
    > > I would like to understand why, when I set LANG to C, in
    > > /etc/environment and LANG to fr_FR.ISO-8859-1 in my .bashrc, after the
    > > login, I can't write te letters with accents.
    >
    > Are you talking about a login shell? .bashrc is used for non-login
    > shells. .bash_profile is used for login shells. Check if your
    > .bash_profile is set to include your .bashrc.
     
    I think so. My .bash_profile contains the lines: (without #)
     
    if [ -f ~/.bashrc ]; then
    source ~/.basrc
     
    Anyway, one solution is to put LANG=fr_FR.ISO-8859-1 in /etc/environment
    and export LANG=C in the .bashrc of the user English-speaking.
    Thanks for your advices.

    -- 
    Gerard
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Micha Feigin: "Re: swsusp for Debian was: Activating ACPI supend and ACPI Hibernate in klaptop"

    Relevant Pages

    • SUMMARY: how to set correct path?
      ... ven if we login with ssh. ... For BASH login shell, place the system wide ENV variables, such as PATH, ... You can set Use_login in the sshd_config to yes and restart sshd. ...
      (SunManagers)
    • Re: $PATH and /etc/profile
      ... think the debian maintainers would have done this a long time ago? ... > starting X from a login shell. ... .xsession is there for users to set up their system. ... > at their X scripts the xsession is exec'd through a login shell precisely as ...
      (Debian-User)
    • Re: consent to monitoring banner for ssh
      ... # Note that output goes into the .xsession-errors file for easy debugging ... You don't need set the everyone's login shell, ... everyone's login shell to a locally-written perl script. ...
      (RedHat)
    • Re: Detailed logging of ssh sessions
      ... >via ssh). ... come in some way from the login shell. ... I'd just experiment with using script in some way ...
      (freebsd-questions)
    • Re: difference between su and su -
      ... >> These are not functions of a login shell, but of the login manager, or ... >> whatever hands you a login shell. ... > Give me an example of what you mean by a login manager, ... Usually when you sudo the euid changes and the reuid does not. ...
      (comp.os.linux.misc)