From c269a27b85bf3a4a02157057fd73362bd805f262 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 24 Sep 2015 15:35:39 +0100 Subject: [PATCH] Set C locale for numeric values. --- src/libutil/util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libutil/util.c b/src/libutil/util.c index 11e3248ac..506940171 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 -- 2.39.5