Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: ru_RU.CP1251 locale is absent in locale.gen (Read 373 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

ru_RU.CP1251 locale is absent in locale.gen

Strange, even be_BY CP1251 and bg_BG CP1251 are there, but no ru_RU.CP1251. It's always included in any other distro's locale.gen file.

Why so? Is it possible to add this locale somehow?

Thanks.

Re: ru_RU.CP1251 locale is absent in locale.gen

Reply #1
I don't know is such a locale should exist or not, but it does not seems to exist in source code at specific commit or at latest source commit.
it's up to "glibc" to add it.

do not quote me on this, I have little knowledge in glibc code base.

Re: ru_RU.CP1251 locale is absent in locale.gen

Reply #2
Strange, even be_BY CP1251 and bg_BG CP1251 are there, but no ru_RU.CP1251. It's always included in any other distro's locale.gen file.

Why so? Is it possible to add this locale somehow?

Thanks.
The keymap is part of kbd.  (/usr/share/kbd/keymaps/i386/qwerty/ru-cp1251.map.gz)
Try adding ru_RU CP1251 to /etc/locale.gen and running locale-gen
It reported
Quote
Generating locales...
  en_GB.UTF-8... done
  en_GB.ISO-8859-1... done
  en_US.UTF-8... done
  ru_RU.CP1251... done
Generation complete.
when I just tried it.

No idea if it will actually work or why it's not in the /etc/locale.gen file ?

Re: ru_RU.CP1251 locale is absent in locale.gen

Reply #3
No idea if it will actually work or why it's not in the /etc/locale.gen file

Yeah, that's what I thought at first too. Probably other distros simply add it manually? Not sure. Anyway, I'll leave it as it is. I'll just use ru_RU.UTF-8 instead. Thanks.