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
This commit is contained in:
David Lawrence Ramsey 2005-01-28 19:37:23 +00:00
parent 798e67e0a1
commit d15de73bf3
1 changed files with 5 additions and 0 deletions

View 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, "");