Index: help.c =================================================================== RCS file: /cvs/gnome/mc/src/help.c,v retrieving revision 1.33 diff -u -p -r1.33 help.c --- help.c 22 Oct 2002 23:56:26 -0000 1.33 +++ help.c 13 Nov 2002 10:04:00 -0000 @@ -48,11 +48,13 @@ #include "dialog.h" #include "win.h" #include "mouse.h" -#include "key.h" /* For mi_getch() */ +#include "key.h" /* For mi_getch() */ #include "help.h" #include "dlg.h" /* For Dlg_head */ #include "widget.h" /* For Widget */ #include "wtools.h" /* For common_dialog_repaint() */ +#include "charsets.h" /* For convert_to_display_c() */ +#include "selcodepage.h" /* For do_select_codepage() */ #define MAXLINKNAME 80 #define HISTORY_SIZE 20 @@ -429,8 +431,13 @@ static void show (Dlg_head *h, char *pai continue; if (col > HELP_WINDOW_WIDTH-1) continue; - + dlg_move (h, line+2, col+2); +#ifdef HAVE_CHARSET + c = (unsigned char)convert_to_display_c (c); + if (!is_printable (c)) + c = '.'; +#endif if (acs){ if (c == ' ' || c == '.') addch (c); @@ -715,7 +722,11 @@ static int help_handle_key (struct Dlg_h case XCTRL('g'): dlg_stop (h); break; - +#ifdef HAVE_CHARSET + case XCTRL('t'): + do_select_codepage (); + break; +#endif default: return 0;