]> granicus.if.org Git - file/commitdiff
remove setlocale check (petk)
authorChristos Zoulas <christos@zoulas.com>
Thu, 28 Mar 2019 20:54:03 +0000 (20:54 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 28 Mar 2019 20:54:03 +0000 (20:54 +0000)
configure.ac
src/file.c

index 79f2720e2d5250719369b32c186f37693386637a..d6a692afff7708ff898335b71ed7edd6461045da 100644 (file)
@@ -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)
index abf0bf417273de5733e9513706d0423892a2816d..5b60b95f42401babeede7e9eef910736be6f0f6c 100644 (file)
@@ -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 ... */