]> git.wh0rd.org Git - nano.git/commitdiff
properly enable UTF-8 support when using slang
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 28 Jan 2005 19:37:23 +0000 (19:37 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 28 Jan 2005 19:37:23 +0000 (19:37 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2305 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/nano.c

index 568aa845769475a8de97a248e140e9f328eb10b2..9c9eb45a84422a866b64cdcea62331a6d0bad1b9 100644 (file)
@@ -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, "");