Przeglądaj źródła

setlocale(LC_ALL, "") should be setlocale(LC_NUMERIC, "C") to properly parse the output of ping.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1171 f882894a-f735-0410-b71e-b25c423dba1c
M. Sean Finney 21 lat temu
rodzic
commit
0dd8bfec75
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      plugins/check_ping.c

+ 1 - 1
plugins/check_ping.c

@@ -71,7 +71,7 @@ main (int argc, char **argv)
 	int this_result = STATE_UNKNOWN;
 	int i;
 
-	setlocale (LC_ALL, "");
+	setlocale (LC_NUMERIC, "C");
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);