* setup.c (load_setup): Call init_printable_table() and

init_translation_table() regardless of other failures.
This commit is contained in:
Pavel Roskin 2001-06-07 20:47:36 +00:00
parent d3b2663c2e
commit e7f81bb092
2 changed files with 12 additions and 8 deletions

View File

@ -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().

View File

@ -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
}