mc/lib
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
..
event Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
filehighlight Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
mcconfig Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
search Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
skin Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
strutil charset: rename IBM866 to CP866 for iconv and adjust charset names for codeset 2024-10-05 11:49:26 +02:00
tty x11: fix -Wdeprecated-declarations for g_module_build_path 2024-08-15 21:09:08 +02:00
vfs lib/path: clarify conditions for creating converters 2024-10-05 11:49:26 +02:00
widget Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
charsets.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
charsets.h (str_convert_to_input): make inline. 2021-03-14 19:30:42 +03:00
event-types.h Reimplement handling of ev_vfs_print_message_t message. 2015-11-05 14:33:21 +03:00
event.h Use argument names in function declarations. 2021-06-20 15:14:56 +03:00
file-entry.h file_entry_t: rename members: 2023-08-04 21:04:54 +03:00
filehighlight.h Move definition of file_entry_t to separate file. 2023-03-19 20:34:23 +03:00
fileloc.h Rename FISH VFS to SHELL one. 2023-10-15 16:04:39 +03:00
fs.h vfs_dirent: add new member d_len to get rid of d_name length calculation. 2024-06-02 12:41:34 +03:00
glibcompat.c glibcompat: remove g_direct_equal shim 2024-06-03 16:18:12 +02:00
glibcompat.h (mc_g_string_append_c_len): new API that extends GString one. 2024-06-02 12:41:34 +03:00
global.c Update copyright years. 2024-01-01 09:46:17 +03:00
global.h Move OS-specific stuff from lib/global.h to lib/unixcompat.h. 2024-04-07 16:38:11 +03:00
hook.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
hook.h fixed doxygen documentation 2012-09-10 14:29:53 +03:00
keybind.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
keybind.h Rename FISH VFS to SHELL one. 2023-10-15 16:04:39 +03:00
lock.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
lock.h Changed lock_file() and unlock_file() functions 2012-03-06 11:52:30 +03:00
logging.c Update copyright years. 2024-01-01 09:46:17 +03:00
logging.h Clarify __attribute ((format (printf))) usage. 2015-11-05 14:33:20 +03:00
Makefile.am Merge lib/utilunix.h into lib/util.h. 2024-04-07 16:38:11 +03:00
mcconfig.h (mc_config_history_get_recent_item): new API. 2023-11-06 21:06:15 +03:00
search.h Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
serialize.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
serialize.h lib/mcconfig: fix coding style; apply source file template. 2019-09-01 19:41:12 +03:00
shell.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
shell.h Fix typos. 2020-12-31 16:26:46 +03:00
skin.h Ticket #4433: skins: add color for non-printable characters in editor. 2023-12-10 17:47:07 +03:00
stat-size.h Remove Cray support. 2020-10-13 16:34:55 +03:00
strutil.h Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
timefmt.c Update copyright years. 2024-01-01 09:46:17 +03:00
timefmt.h Fix various typos in the source code (closes MidnightCommander/mc#177). 2023-01-28 21:38:05 +03:00
unixcompat.h vfs: implement support for all known stat formats and centralize handling 2024-07-28 10:00:52 +02:00
util.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
util.h Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
utilunix.c Indentation using GNU indent-2.2.13. 2024-06-02 12:49:13 +03:00
widget.h Create WBackground widget. 2020-03-08 20:17:29 +03:00