summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM. Sean Finney <seanius@users.sourceforge.net>2005-05-03 02:00:51 (GMT)
committerM. Sean Finney <seanius@users.sourceforge.net>2005-05-03 02:00:51 (GMT)
commit0dd8bfec75d1bfdcf92ae65c006c8e9a6a9b5fe1 (patch)
treed6a79d5e3f7797b4ac5f4d494a8bfe641ae4c596
parent3e5b9b3d3256792f02c53b3bce0cb5ae6c147428 (diff)
downloadmonitoring-plugins-0dd8bfec75d1bfdcf92ae65c006c8e9a6a9b5fe1.tar.gz
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
-rw-r--r--plugins/check_ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index bd7911d..74b6fce 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -71,7 +71,7 @@ main (int argc, char **argv)
71 int this_result = STATE_UNKNOWN; 71 int this_result = STATE_UNKNOWN;
72 int i; 72 int i;
73 73
74 setlocale (LC_ALL, ""); 74 setlocale (LC_NUMERIC, "C");
75 bindtextdomain (PACKAGE, LOCALEDIR); 75 bindtextdomain (PACKAGE, LOCALEDIR);
76 textdomain (PACKAGE); 76 textdomain (PACKAGE);
77 77