Pages

Tuesday, March 12, 2013

setting LANG environment variable

Setting LANG environment variable in linux sounds as an easy task:
    export LANG=en_US.utf8
But when attempting to make this change permanent, it is no longer an easy task. Exporting this in /etc/profile, ~/.bashrc or ~/.bash_profile does not have the desired effect. 
After doing a fair amount of googling I found out the solution for this: create a file called ~/.i18n which contains you LANG setting:
    cat ~/.i18n
   LANG=en_US.utf8
This does the trick.

No comments:

Post a Comment