[Xfce4-commits] [xfce/xfce4-settings] 01/02: Fix syndaemon not starting with certain locales
noreply at xfce.org
noreply at xfce.org
Tue Feb 27 23:25:13 CET 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h x f c e - 4 . 1 2
in repository xfce/xfce4-settings.
commit 00544567799d177795c833b2ee6337b4b27a5ba1
Author: Florian Schüller <florian.schueller at gmail.com>
Date: Sun Nov 26 11:15:33 2017 +0100
Fix syndaemon not starting with certain locales
Fixed syndaemon not starting if the current locale creates a colon in the
float-number for syndaemon.
---
xfsettingsd/pointers.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xfsettingsd/pointers.c b/xfsettingsd/pointers.c
index 78f8b28..581406b 100644
--- a/xfsettingsd/pointers.c
+++ b/xfsettingsd/pointers.c
@@ -39,6 +39,7 @@
#include <gdk/gdkx.h>
#include <xfconf/xfconf.h>
#include <libxfce4util/libxfce4util.h>
+#include <locale.h>
#include <dbus/dbus-glib.h>
@@ -351,6 +352,7 @@ xfce_pointers_helper_syndaemon_check (XfcePointersHelper *helper)
disable_duration = xfconf_channel_get_double (helper->channel,
"/DisableTouchpadDuration",
2.0);
+ setlocale(LC_NUMERIC, "C"); /* syndaemon needs a dot for the float. Nothing localized! */
g_snprintf (disable_duration_string, sizeof (disable_duration_string),
"%.1f", disable_duration);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list