From d15de73bf394ac308c66633b2138c0f3c2d05639 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 28 Jan 2005 19:37:23 +0000 Subject: [PATCH] properly enable UTF-8 support when using slang git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2305 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/nano.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nano.c b/src/nano.c index 568aa845..9c9eb45a 100644 --- a/src/nano.c +++ b/src/nano.c @@ -3902,6 +3902,11 @@ int main(int argc, char **argv) if (locale == NULL || (locale != NULL && strstr(locale, "UTF-8") == NULL)) SET(NO_UTF8); + +#ifdef USE_SLANG + if (!ISSET(NO_UTF8)) + SLsmg_utf8_enable(TRUE); +#endif } #else setlocale(LC_ALL, ""); -- 2.39.5