mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-10 13:32:31 +03:00
Merge branch '1604_cp866'
* 1604_cp866: Added IBM866 locale to the list of 8-bit locales. Ticket #1604: add support of CP866 locale.
This commit is contained in:
commit
bc704787ff
10
src/main.c
10
src/main.c
@ -1253,7 +1253,7 @@ setup_mc (void)
|
||||
}
|
||||
|
||||
static void
|
||||
setup_dummy_mc ()
|
||||
setup_dummy_mc (void)
|
||||
{
|
||||
char d[MC_MAXPATHLEN];
|
||||
|
||||
@ -1642,8 +1642,6 @@ mc_maybe_editor_or_viewer (void)
|
||||
if (!(view_one_file || edit_one_file))
|
||||
return 0;
|
||||
|
||||
setup_dummy_mc ();
|
||||
|
||||
/* Invoke the internal view/edit routine with:
|
||||
* the default processing and forcing the internal viewer/editor
|
||||
*/
|
||||
@ -1676,12 +1674,16 @@ do_nc (void)
|
||||
midnight_dlg = create_dlg (0, 0, LINES, COLS, midnight_colors, midnight_callback,
|
||||
"[main]", NULL, DLG_WANT_IDLE);
|
||||
|
||||
if (view_one_file || edit_one_file)
|
||||
setup_dummy_mc ();
|
||||
else
|
||||
setup_mc ();
|
||||
|
||||
/* start check display_codepage and source_codepage */
|
||||
check_codeset();
|
||||
|
||||
/* Check if we were invoked as an editor or file viewer */
|
||||
if (!mc_maybe_editor_or_viewer ()) {
|
||||
setup_mc ();
|
||||
setup_panels_and_run_mc ();
|
||||
|
||||
/* Program end */
|
||||
|
@ -48,6 +48,8 @@ static const char *str_8bit_encodings[] = {
|
||||
"cp1250",
|
||||
"cp-866",
|
||||
"cp866",
|
||||
"ibm-866",
|
||||
"ibm866",
|
||||
"cp-850",
|
||||
"cp850",
|
||||
"cp-852",
|
||||
|
Loading…
Reference in New Issue
Block a user