Ver Fonte

Set LC_NUMERIC to POSIX for check_ntp plugins

madlohe há 6 anos atrás
pai
commit
6a5b424aea
2 ficheiros alterados com 2 adições e 0 exclusões
  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);