nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 3dd744f392de5f2f05615cd951d0b9be2a4cf897
parent adc30a839b9686bfbcd26d7d85ca3e5fb596fa30
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sun, 20 Mar 2005 07:26:47 +0000

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

Diffstat:
Msrc/nano.c | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -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