From: Christos Zoulas Date: Thu, 28 Mar 2019 20:54:03 +0000 (+0000) Subject: remove setlocale check (petk) X-Git-Tag: FILE5_37~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a926827f8dee67c6eab92e520322e88fe57df450;p=file remove setlocale check (petk) --- diff --git a/configure.ac b/configure.ac index 79f2720e..d6a692af 100644 --- a/configure.ac +++ b/configure.ac @@ -151,7 +151,7 @@ else fi]) dnl Checks for functions -AC_CHECK_FUNCS(strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale memmem) +AC_CHECK_FUNCS(strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem) dnl Provide implementation of some required functions if necessary AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r asctime_r localtime_r gmtime_r pread strcasestr fmtcheck dprintf) diff --git a/src/file.c b/src/file.c index abf0bf41..5b60b95f 100644 --- a/src/file.c +++ b/src/file.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: file.c,v 1.180 2019/03/12 20:43:05 christos Exp $") +FILE_RCSID("@(#)$File: file.c,v 1.181 2019/03/28 20:54:03 christos Exp $") #endif /* lint */ #include "magic.h" @@ -186,9 +186,7 @@ main(int argc, char *argv[]) char *progname; /* makes islower etc work for other langs */ -#ifdef HAVE_SETLOCALE (void)setlocale(LC_CTYPE, ""); -#endif #ifdef __EMX__ /* sh-like wildcard expansion! Shouldn't hurt at least ... */