Commit 8974efa2 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

when checking the locale string, use nstrcasestr() if we don't have

strcasestr()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2400 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
......@@ -3983,8 +3983,14 @@ int main(int argc, char **argv)
char *locale = setlocale(LC_ALL, "");
if (locale == NULL || (locale != NULL &&
#ifdef HAVE_STRCASESTR
strcasestr(locale, "UTF8") == NULL &&
strcasestr(locale, "UTF-8") == NULL))
strcasestr(locale, "UTF-8") == NULL
#else
nstrcasestr(locale, "UTF8") == NULL &&
nstrcasestr(locale, "UTF-8") == NULL
#endif
))
SET(NO_UTF8);
#ifdef USE_SLANG
......
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