commit 8974efa27b9346a7c91c2845492cde39499f4153
parent d96ee5260a04a321812e9c0fb499fcf24d100b30
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sun, 20 Mar 2005 06:50:26 +0000
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
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/nano.c b/src/nano.c
@@ -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