1
$ cat /etc/default/locale
LANG="ru_UA.UTF-8"
LANGUAGE="ru_UA:ru"
$ locale -a | grep ru_UA
ru_UA.iso885915
ru_UA.utf8

I want to have:

$ cat /etc/default/locale
LANG="ru_UA.UTF-8"
LANGUAGE="ru_UA:ru"

$ locale -a | grep ru_UA
ru_UA.iso885915
ru_UA.koi8r
ru_UA.utf8

That is, I want to add one more encoding ru_UA.koi8r for the locale ru_UA.

How do I bring the system to the form? Advice please!

2 Answers 2

0

First, locale -a | grep ru_RU will never return what you write. Maybe locale -a | grep ru_UA.

Second, you can generate new locales by issuing:

sudo locale-gen ru_UA.KOI8-R

I didn't check if ru_UA.KOI8-R is the exact form for what you wish.

More about: (Re-)Generating locales.

10
  • ppm@ppm-VirtualBox ~ $ sudo locale-gen ru_UA.koi8r [sudo] password for ppm: ppm@ppm-VirtualBox ~ $ locale -a | grep ru_UA ru_UA.iso885915 ru_UA.utf8 ppm@ppm-VirtualBox ~ $ sudo locale-gen ru_UA.KOI8-R ppm@ppm-VirtualBox ~ $ locale -a | grep ru_UA ru_UA.iso885915 ru_UA.utf8 ppm@ppm-VirtualBox ~ $ May 31, 2013 at 8:27
  • @Igor I told you, check for exact form of encoding for ru_UA.KOI8-R May 31, 2013 at 8:52
  • @Igor I think is ru_RU.KOI8-R or something like this... Try yourself with many variants until you get it. May 31, 2013 at 8:56
  • But look more closely output of the command I tried koi8r and KOI8-R May 31, 2013 at 9:03
  • @Igor I don't understand what you mean. I sow that didn't give any result and I told you what you can do. May 31, 2013 at 9:08
0

You need to decide which encoding to use; you cannot enable both concurrently.

That said, and since you ask for advice, I would advise you to not use any other locale but UTF-8 locales in Ubuntu. If you do, you may encounter unexpected behaviour in many respects.

You must log in to answer this question.

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