3

I ran it once, but my terminal native language went back to Finnish. I've tried unsuccessfully .bashrc and .profile.

I have followed the thread here about How to set all locale settings in Ubuntu. I have also tried to setup English as locale:

sudo update-locale LANG=en_EN.UTF-8 LC_MESSAGES=POSIX

But output:

*** update-locale: Error: invalid locale settings:  LC_NAME="fi_FI.UTF-8" LC_TIME="fi_FI.UTF-8"
LC_IDENTIFICATION="fi_FI.UTF-8" LC_NUMERIC="fi_FI.UTF-8"
LC_MESSAGES=POSIX LANG=en_EN.UTF-8 LC_MEASUREMENT="fi_FI.UTF-8"
LC_ADDRESS="fi_FI.UTF-8" LC_PAPER="fi_FI.UTF-8"
LC_MONETARY="fi_FI.UTF-8" LC_TELEPHONE="fi_FI.UTF-8"

Where can you put export LC_ALL=C?

Léo Léopold Hertz 준영
  • 4,617
  • 20
  • 77
  • 153
  • 1
    Do _not_ do this, unless you exactly know what you're doing (in which case probably you wouldn't ask this question). This locale has the ANSI (7-bit) charset rather than UTF-8, that is, anything other than plain English characters will be hopelessly broken. At the very least you should have `LC_CTYPE=C.UTF-8` (this is only available on Ubuntu and a few other distros, by far not on all Linuxes). Probably you're better off with going for `en_US.UTF-8` instead. – egmont Jun 04 '16 at 05:19
  • @egmont Please, make your comment an answer. – Léo Léopold Hertz 준영 Jun 04 '16 at 07:03
  • I did not answer your question :P – egmont Jun 04 '16 at 07:40
  • @egmont You did. It is the best answer here with explanation why so should be done as you explain. – Léo Léopold Hertz 준영 Jun 04 '16 at 08:12

1 Answers1

4

You can either simply enter them by hand in each terminal you open, like the following:

LC_ALL=C
LANG=C

or you put it into .bashrc in the following way:

LC_ALL=C
LANG=C
export LC_ALL LANG
Videonauth
  • 33,045
  • 16
  • 104
  • 120