mirror of git://git.sv.gnu.org/nano.git
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:
parent
798e67e0a1
commit
d15de73bf3
|
@ -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, "");
|
||||
|
|
Loading…
Reference in New Issue