Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: TheExplorer on 25 September 2023, 08:07:00

Title: ru_RU.CP1251 locale is absent in locale.gen
Post by: TheExplorer on 25 September 2023, 08:07:00
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.
Title: Re: ru_RU.CP1251 locale is absent in locale.gen
Post by: LemonPie on 25 September 2023, 09:44:12
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 (https://sourceware.org/git/?p=glibc.git;a=tree;f=localedata;h=42bbfc1c107f4aeec38e5fedc8cbdbd43515773e;hb=HEAD) or at latest source commit (https://sourceware.org/git/?p=glibc.git;a=tree;f=localedata;hb=HEAD).
it's up to "glibc" to add it.

do not quote me on this, I have little knowledge in glibc code base.
Title: Re: ru_RU.CP1251 locale is absent in locale.gen
Post by: gripped on 25 September 2023, 10:49:36
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 ?
Title: Re: ru_RU.CP1251 locale is absent in locale.gen
Post by: TheExplorer on 25 September 2023, 20:04:09
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.