]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix glib internals by setting locale in `rspamc`
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 25 Sep 2024 11:43:27 +0000 (12:43 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 25 Sep 2024 11:43:27 +0000 (12:43 +0100)
src/client/rspamc.cxx

index 1c67e4167d047ce3684edc7d58808a48518e57e3..31a4aaf2412bc4881d9997f3631b9343de3994bb 100644 (file)
@@ -31,6 +31,7 @@
 #include <cstdint>
 #include <cstdio>
 #include <cmath>
+#include <locale>
 
 #include "frozen/string.h"
 #include "frozen/unordered_map.h"
@@ -2180,6 +2181,7 @@ int main(int argc, char **argv, char **env)
 {
        auto *kwattrs = g_queue_new();
 
+       std::locale::global(std::locale(""));
        read_cmd_line(&argc, &argv);
        tty = isatty(STDOUT_FILENO);