From: Vsevolod Stakhov Date: Thu, 24 Sep 2015 14:35:39 +0000 (+0100) Subject: Set C locale for numeric values. X-Git-Tag: 1.0.3~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c269a27b85bf3a4a02157057fd73362bd805f262;p=thirdparty%2Frspamd.git Set C locale for numeric values. --- diff --git a/src/libutil/util.c b/src/libutil/util.c index 11e3248acc..5069401713 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -1933,6 +1933,8 @@ rspamd_init_libs (void) else { /* Just set the default locale */ setlocale (LC_ALL, ""); + /* But for some issues we still want C locale */ + setlocale (LC_NUMERIC, "C"); } #endif