Что-то с локалью

Локаль - KOI8-R
/etc/locale.gen

en_US.ISO-8859-1
en_US.UTF-8
ru_RU.UTF-8
ru_RU.KOI8-R
ru_RU.CP1251

При компиляции glibc в конце выдаёт:
* Generating 2 locales (this might take a while) with 3 jobs
* Bad entry in locale.gen: 'ru_RU.CP1251 '; skipping
* (1/2) Generating en_US.ISO-8859-1 ...
character map file `en_US.UTF-8' not found: No such file or directory [ !! ]
* (2/2) Generating en_US.UTF-8 ...
character map file `ru_RU.KOI8-R' not found: No such file or directory

и после этого
locale -a | grep ru
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
ru_RU.utf8

хотя делал до компиляции
localedef --no-archive -c -i ru_RU -f KOI8-R ru

В общем фигня какая-то. Что делаю не так ?

У вас ошибка в

У вас ошибка в синтаксисе
мой locale.gen

en_US ISO-8859-1
en_US.UTF-8 UTF-8

ru_RU.UTF-8 UTF-8
ru_RU.KOI8-R KOI8-R
ru_RU ISO-8859-5

_________________
Gentoo GNU/Linux 2.6.21 GCC 4.1.2 Dual Xeon
Working on Gentoo for iPAQ hx4700 :-)

Точно

Точно. Спасибо.

Что-то с локалью

установка glibc
emerge glibc

устанавливаем нужные кодировки
nano -w /etc/locale.gen
файл /etc/locale.gen
ru_RU.UTF-8 UTF-8
ru_RU.KOI8-R KOI8-R
ru_RU.CP1251

создаем локали
locale-gen

А вот у меня случился тут

А вот у меня случился тут такой случай :)
генерирую локали:
en_US ISO-8859-1
en_US.UTF-8 UTF-8
ru_RU.KOI8-R KOI8-R
ru_RU.UTF-8 UTF-8
ru_RU.CP1251 CP1251
именно так у меня написано в locale.gen
процесс проходит с таким окончанием:

 * Generating 5 locales (this might take a while) with 1 jobs
 *  (1/5) Generating en_US.ISO-8859-1 ...                                                                               [ ok ]
 *  (2/5) Generating en_US.UTF-8 ...                                                                               [ ok ]
 *  (3/5) Generating ru_RU.KOI8-R ...                                                                               [ ok ]
 *  (4/5) Generating ru_RU.UTF-8п ...
character map file `UTF-8п' not found: No such file or directory
/usr/share/i18n/locales/ru_RU:76: LC_MESSAGES: unknown character in field `yesexpr'
/usr/share/i18n/locales/ru_RU:77: LC_MESSAGES: unknown character in field `noexpr'
/usr/share/i18n/locales/ru_RU:82: LC_MONETARY: unknown character in field `currency_symbol'
/usr/share/i18n/locales/ru_RU:105: LC_TIME: unknown character in field `day'
/usr/share/i18n/locales/ru_RU:106: LC_TIME: unknown character in field `day'
/usr/share/i18n/locales/ru_RU:107: LC_TIME: unknown character in field `day'
/usr/share/i18n/locales/ru_RU:108: LC_TIME: unknown character in field `day'
/usr/share/i18n/locales/ru_RU:109: LC_TIME: unknown character in field `day'
/usr/share/i18n/locales/ru_RU:110: LC_TIME: unknown character in field `day'
/usr/share/i18n/locales/ru_RU:111: LC_TIME: unknown character in field `day'
/usr/share/i18n/locales/ru_RU:112: LC_TIME: unknown character in field `abday'
/usr/share/i18n/locales/ru_RU:113: LC_TIME: unknown character in field `abday'
/usr/share/i18n/locales/ru_RU:114: LC_TIME: unknown character in field `abday'
/usr/share/i18n/locales/ru_RU:115: LC_TIME: unknown character in field `abday'
/usr/share/i18n/locales/ru_RU:116: LC_TIME: unknown character in field `abday'
/usr/share/i18n/locales/ru_RU:117: LC_TIME: unknown character in field `abday'
/usr/share/i18n/locales/ru_RU:118: LC_TIME: unknown character in field `abday'
/usr/share/i18n/locales/ru_RU:119: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:120: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:121: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:122: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:123: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:124: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:125: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:126: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:127: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:128: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:129: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:130: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/ru_RU:131: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:132: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:133: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:134: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:135: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:136: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:137: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:138: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:139: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:140: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:141: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/ru_RU:142: LC_TIME: unknown character in field `abmon'
LC_MESSAGES: value for field `yesexpr' must not be an empty string
LC_MESSAGES: value for field `noexpr' must not be an empty string                                                       [ !! ]
 *  (5/5) Generating ru_RU.CP1251 ...                                                                               [ ok ]
 * Generation complete

сопсно принял наитупейшее решение которое было можно принять: сделал

ln -s /usr/share/i18n/charmaps/UTF-8.gz /usr/share/i18n/charmaps/UTF-8п.gz

и помогло! :)

 * Generating 5 locales (this might take a while) with 1 jobs
 *  (1/5) Generating en_US.ISO-8859-1 ...                                                                              [ ok ]
 *  (2/5) Generating en_US.UTF-8 ...                                                                              [ ok ]
 *  (3/5) Generating ru_RU.KOI8-R ...                                                                              [ ok ]
 *  (4/5) Generating ru_RU.UTF-8п ...                                                                              [ ok ]
 *  (5/5) Generating ru_RU.CP1251 ...                                                                              [ ok ]
 * Generation complete

все стало порусски, откуда бралась эта "пэ" понятия не имею, однако когда я зашел поглядеть еще раз на locale.gen то обнаружил следующее
en_US ISO-8859-1
en_US.UTF-8 UTF-8
ru_RU.KOI8-R KOI8-R
ru_RU.UTF-8 UTF-8�
ru_RU.CP1251 CP1251
какойто непонятный квадратик нарисовался... :)

Я лично вижу какую-то

Я лично вижу какую-то запятоподобную закорючку. Есть мысль, что лучше бы попробовать её удалить и подумать, откуда она там могла взяться

Текстовый редактор vi имеет два режима работы: в первом он пищит, а во втором — всё портит.

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".