From: Rocco Rutte Date: Tue, 11 Jul 2006 23:38:30 +0000 (+0000) Subject: Fix 2305. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3f33ce36ff0dff0dcc9f62f303816172e20d1ae;p=neomutt Fix 2305. --- diff --git a/main.c b/main.c index 0d9d113dc..0ac2f0013 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 a1a2ad22f..8ee3d45a2 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