From: M. Sean Finney Date: Tue, 3 May 2005 02:00:51 +0000 (+0000) Subject: setlocale(LC_ALL, "") should be setlocale(LC_NUMERIC, "C") to properly parse the... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0dd8bfec75d1bfdcf92ae65c006c8e9a6a9b5fe1;p=nagiosplug.git 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 --- 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);