Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Fedora 14, and I'm taking French is school so I decided to set my system to French to see how it was.

I edited /etc/sysconfig/i18n, and changed en_US to fr_FR. Then, I rebooted, and it switched to french.

I decided that I didn't know enough French to function, so I edited i18n again, and I rebooted. But it was still in French. Then this happened:

[Leo@chessman ~]$ cd /etc/sysconfig
[Leo@chessman sysconfig]$ su
Mot de passe : 
[root@chessman sysconfig]# cat i18n
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
[root@chessman sysconfig]# 

Notice that after I typed in su, it said "mot de passe," which is French, even though it says LANG="en_US.UTF-8".

How can I change this back to English?

share|improve this question

I had the same problem and in my case the culprit was /etc/profile which had three export lines at the end (automatically added by a stupid hosting provider during server install).

share|improve this answer

Everything is set in /etc/profile.d/lang.sh in Fedora and Red Hat based systems. See your $HOME/.i18n directory first.

If it does not help you can override this behavior in the /etc/profile.d/lang.sh file itself - put

export LANG=C

there.

There is also one more trick. Ssh client is configured to send locale environment variables by default. Try this:

LC_ALL=C ssh server

If it helps, edit your /etc/ssh/ssh_config (on the client side) or /etc/ssh/sshd_config (on the server side).

share|improve this answer
    
Adding one more trick! – lzap Nov 24 '11 at 10:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .