Editing a file in CP866 encoding
Michael Dukelsky
dukelsky at aha.ru
Mon Jan 18 18:07:47 UTC 2010
Yury V. Zaytsev wrote:
>
>> But why can't I use LANG=ru_RU.CP866? I thought that
>> with this locale it would be possible to see files in CP866 encoding
>> without pressing Alt-e.
>
> You can use it as long as you know what you're doing. But since you came
> up with such a question I assume that you don't. This locale does not
> exist in the standard CentOS distribution:
>
> [zyv at servinet ~]$ locale -a | grep CP
>
> and setting LANG without having generated and installed the locale
> beforehand will break your locale settings.
>
> If my assumptions are incorrect, bear with me.
>
I have generated the locale before using it.
[mike at fido ~]$ locale -a | grep ru
ru_RU
ru_RU.cp866
ru_RU.ibm866
ru_RU.iso88595
ru_RU.koi8r
ru_RU.utf8
russian
ru_UA
ru_UA.koi8u
ru_UA.utf8
More information about the mc
mailing list