]> git.wh0rd.org Git - nano.git/commitdiff
and make the locale string checks use the #defined strcasestr() alias if
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 20 Mar 2005 07:26:47 +0000 (07:26 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 20 Mar 2005 07:26:47 +0000 (07:26 +0000)
necessary

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2402 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/nano.c

index 1b927f7e8feb97c9cf05103572f23185d528a4e9..3f26c7b2e22fab3d526327b306a87ae119b419d0 100644 (file)
@@ -3983,14 +3983,8 @@ 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
-#else
-               nstrcasestr(locale, "UTF8") == NULL &&
-               nstrcasestr(locale, "UTF-8") == NULL
-#endif
-               ))
+               strcasestr(locale, "UTF-8") == NULL))
            SET(NO_UTF8);
 
 #ifdef USE_SLANG