Commit d15de73b authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 5 additions and 0 deletions
+5 -0
......@@ -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, "");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment