mc/misc
Yury V. Zaytsev 1e0e6b5e1e charset: rename IBM866 to CP866 for iconv and adjust charset names for codeset
```
linux $ iconv -l | grep 866
866//
866NAV//
CP866//
CP866NAV//
CSIBM866//
IBM866//
IBM866NAV//

solaris $ iconv -l | grep 866
    CP866 (CP866, CP-866, CP_866, 866),
    IBM-866,

macos % iconv -l | grep 866
CP866 866 CSIBM866 IBM866 MSCP866

musl/src/locale/codepages.h: "cp866\0"
```

On glibc-based systems, codeset will be set to charmap name, on most other systems it seems to be taken from locale name.

## Linux

```
zaytsev@fedora:~$ 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

zaytsev@fedora:~/src$ LC_ALL=ru_RU.cp866 LANG=ru_RU.cp866 ./a.out
IBM866

zaytsev@fedora:~/src$ LC_ALL=ru_RU.koi8r LANG=ru_RU.koi8r ./a.out
KOI8-R

zaytsev@fedora:~/src$ LC_ALL=ru_RU.iso88595 LANG=ru_RU.iso88595 ./a.out
ISO-8859-5
```

## macOS

```
ru_RU.ISO8859-5
ru_RU.CP866
ru_RU.CP1251
ru_RU.UTF-8
ru_RU.KOI8-R
ru_RU

zaytsev@Yurys-MBP mc % LANG=ru_RU.CP866 LC_ALL=ru_RU.CP866 ./a.out
CP866

zaytsev@Yurys-MBP mc % LANG=ru_RU.ISO8859-5 LC_ALL=ru_RU.ISO8859-5 ./a.out
ISO8859-5
```

## FreeBSD

```
ru_RU.CP1251
ru_RU.CP866
ru_RU.ISO8859-5
ru_RU.KOI8-R
ru_RU.UTF-8

zaytsev@cfarm240:~ $ LANG=ru_RU.ISO8859-5 LC_ALL=ru_RU.ISO8859-5 ./a.out
ISO8859-5

zaytsev@cfarm240:~ $ LANG=ru_RU.CP866 LC_ALL=ru_RU.CP866 ./a.out
CP866
```

## Solaris

```
ru
ru.UTF-8
ru.koi8-r
ru_RU
ru_RU.ANSI1251
ru_RU.ISO8859-5
ru_RU.KOI8-R
ru_RU.UTF-8

zaytsev@gcc-solaris10:~/src$ LANG=ru_RU.ISO8859-5 LC_ALL=ru_RU.ISO8859-5 ./a.o>
ISO8859-5

zaytsev@gcc-solaris10:~/src$ LANG=ru.koi8-r LC_ALL=ru.koi8-r ./a.out
KOI8-R
```

## AIX

```
zaytsev@gcc111:[/home/zaytsev]locale -a
C
POSIX
en_US.8859-15
en_US.IBM-858
en_US.ISO8859-1
en_US

-bash-5.1$ LANG=en_US.ISO8859-1 LC_ALL=en_US.ISO8859-1 ./a.out
ISO8859-1
```

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2024-10-05 11:49:26 +02:00
..
ext.d shell: replace which with command -v for speed and POSIX compatibility 2024-09-11 08:45:25 +02:00
macros.d Ticket 1551: Update GPL version from 2 to 3 2011-10-18 14:08:34 +03:00
skins Ticket #4536: skins: add root variant of julia256 skin. 2024-05-09 09:53:15 +03:00
syntax Ticket #4556: color definitions in the "c.syntax" highlight file. 2024-07-25 21:38:44 +03:00
.gitignore Fix .gitignore 2019-09-01 20:13:27 +03:00
edit.indent.rc Ticket #2274: adjust script permissions to installed ones. 2014-01-26 13:38:48 +04:00
filehighlight.ini Ticket #4509: support for lzo/lzop compression format. 2023-11-26 17:27:11 +03:00
Makefile.am Ticket #4588: add vim keymap 2024-09-23 14:00:47 +02:00
mc.charsets.in charset: rename IBM866 to CP866 for iconv and adjust charset names for codeset 2024-10-05 11:49:26 +02:00
mc.default.keymap Rename FISH VFS to SHELL one. 2023-10-15 16:04:39 +03:00
mc.emacs.keymap Rename FISH VFS to SHELL one. 2023-10-15 16:04:39 +03:00
mc.ext.ini.in Ticket #4583: Fix a typo for apt view command line. 2024-09-05 10:57:05 +02:00
mc.keymap Rename keymap files to be with .keymap suffix. 2013-03-09 16:04:51 +04:00
mc.lib Ticket #4325: support Shift+Fn keys for KiTTY. 2022-01-05 16:01:01 +03:00
mc.macros added examples 2011-03-03 20:48:31 +00:00
mc.menu.in Ticket #4509: support for lzo/lzop compression format. 2023-11-26 17:27:11 +03:00
mc.vim.keymap Ticket #4588: add vim keymap 2024-09-23 14:00:47 +02:00
mcedit.menu.in Ticket #3586: mcedit - fix "Lower case selection" command in User Menu 2016-03-04 09:23:36 +03:00
xterm.ad Move some files from contrib into misc directory 2009-05-08 16:56:02 +03:00