From 0dd8bfec75d1bfdcf92ae65c006c8e9a6a9b5fe1 Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Tue, 3 May 2005 02:00:51 +0000 Subject: [PATCH] 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 --- plugins/check_ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) int this_result = STATE_UNKNOWN; int i; - setlocale (LC_ALL, ""); + setlocale (LC_NUMERIC, "C"); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); -- 2.30.2