From: Rocco Rutte Date: Tue, 11 Jul 2006 23:38:30 +0000 (+0000) Subject: Fix 2305. X-Git-Tag: mutt-1-5-12-rel~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b9f2fd35ec08a1bf8de7a3cf751af448f9c3283;p=mutt Fix 2305. --- diff --git a/main.c b/main.c index 0d9d113d..0ac2f001 100644 --- a/main.c +++ b/main.c @@ -484,6 +484,9 @@ static void start_curses (void) SLtt_Ignore_Beep = 1; /* don't do that #*$@^! annoying visual beep! */ SLsmg_Display_Eight_Bit = 128; /* characters above this are printable */ SLtt_set_color(0, NULL, "default", "default"); +#if SLANG_VERSION >= 20000 + SLutf8_enable(-1); +#endif #else /* should come before initscr() so that ncurses 4.2 doesn't try to install its own SIGWINCH handler */ diff --git a/mutt_curses.h b/mutt_curses.h index a1a2ad22..8ee3d45a 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -26,7 +26,9 @@ #define unix #endif /* unix */ -#include "slcurses.h" +#include /* in addition to slcurses.h, we need slang.h for the version + number to test for 2.x having UTF-8 support in main.c */ +#include #define KEY_DC SL_KEY_DELETE #define KEY_IC SL_KEY_IC