Explorar o código

Set LC_NUMERIC to POSIX for check_ntp plugins

madlohe %!s(int64=6) %!d(string=hai) anos
pai
achega
6a5b424aea
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      plugins/check_ntp_peer.c
  2. 1 0
      plugins/check_ntp_time.c

+ 1 - 0
plugins/check_ntp_peer.c

@@ -565,6 +565,7 @@ int main(int argc, char *argv[]){
 	char *result_line, *perfdata_line;
 
 	setlocale (LC_ALL, "");
+	setlocale (LC_NUMERIC, "C");
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 

+ 1 - 0
plugins/check_ntp_time.c

@@ -576,6 +576,7 @@ int main(int argc, char *argv[]){
 	char *result_line, *perfdata_line;
 
 	setlocale (LC_ALL, "");
+	setlocale (LC_NUMERIC, "C");
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);