mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-28 15:43:09 +03:00
and make the locale string checks use the #defined strcasestr() alias if
necessary git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2402 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
adc30a839b
commit
3dd744f392
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user