daemon: Recover setlocale() call in src/daemon/collectd.c do_init()
authorPavel Rochnyack <pavel2000@ngs.ru>
Fri, 12 Jul 2019 12:35:23 +0000 (19:35 +0700)
committerMatthias Runge <mrunge@redhat.com>
Fri, 19 Jul 2019 07:50:31 +0000 (09:50 +0200)
865f2eb31e8264edd9337bc63ac59f6c2fa3b5a7 breaks locale checks

Issue: #3181
(cherry picked from commit 38fac5d5579b952f9546623f39cdbcae89a6f090)

configure.ac

index 2289aa4..ac072b0 100644 (file)
@@ -165,6 +165,7 @@ AC_CHECK_HEADERS_ONCE([ \
   kstat.h \
   kvm.h \
   libgen.h \
+  locale.h \
   mntent.h \
   mnttab.h \
   netdb.h \
@@ -758,6 +759,7 @@ AC_CHECK_FUNCS_ONCE([ \
     select \
     setenv \
     setgroups \
+    setlocale \
     strcasecmp \
     strdup \
     strncasecmp \