mirror of https://github.com/MidnightCommander/mc
* setup.c (load_setup): Call init_printable_table() and
init_translation_table() regardless of other failures.
This commit is contained in:
parent
d3b2663c2e
commit
e7f81bb092
|
@ -1,5 +1,8 @@
|
|||
2001-06-07 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* setup.c (load_setup): Call init_printable_table() and
|
||||
init_translation_table() regardless of other failures.
|
||||
|
||||
* charsets.c (get_codepage_index): Warning fix.
|
||||
(init_printable_table): New function.
|
||||
* charsets.h: Declare init_printable_table().
|
||||
|
|
17
src/setup.c
17
src/setup.c
|
@ -646,15 +646,16 @@ load_setup (void)
|
|||
char cpname[128];
|
||||
load_string( "Misc", "display_codepage", "",
|
||||
cpname, sizeof(cpname) );
|
||||
if ( cpname[0] != '\0' ) {
|
||||
char *errmsg;
|
||||
|
||||
if ( cpname[0] != '\0' )
|
||||
display_codepage = get_codepage_index( cpname );
|
||||
init_printable_table( display_codepage );
|
||||
errmsg = init_translation_table( source_codepage, display_codepage );
|
||||
if (errmsg)
|
||||
message( 1, MSG_ERROR, "%s", errmsg );
|
||||
}
|
||||
}
|
||||
|
||||
init_printable_table( display_codepage );
|
||||
{
|
||||
char *errmsg = init_translation_table( source_codepage,
|
||||
display_codepage );
|
||||
if (errmsg)
|
||||
message( 1, MSG_ERROR, "%s", errmsg );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue