Explorar el Código

Set LC_NUMERIC to POSIX for check_ntp plugins

madlohe hace 6 años
padre
commit
6a5b424aea
Se han modificado 2 ficheros con 2 adiciones y 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);