aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-24 15:35:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-24 15:35:39 +0100
commitc269a27b85bf3a4a02157057fd73362bd805f262 (patch)
tree17c98275bc132c5a7b0d0651101455c6c924629e /src/libutil/util.c
parent157bb592f4805f8eda772cd433fae7541d7df25c (diff)
downloadrspamd-c269a27b85bf3a4a02157057fd73362bd805f262.tar.gz
rspamd-c269a27b85bf3a4a02157057fd73362bd805f262.zip
Set C locale for numeric values.
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r--src/libutil/util.c2
1 files changed, 2 insertions, 0 deletions
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