From e7f81bb0921fa89155301482fc4c1ef874dc38d2 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 7 Jun 2001 20:47:36 +0000 Subject: [PATCH] * setup.c (load_setup): Call init_printable_table() and init_translation_table() regardless of other failures. --- src/ChangeLog | 3 +++ src/setup.c | 17 +++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3c39feb49..c978256ad 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-06-07 Pavel Roskin + * 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(). diff --git a/src/setup.c b/src/setup.c index 4c98ac918..0cf52041a 100644 --- a/src/setup.c +++ b/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 }