From fa0e19ed7dbf2a649fa6d1d1f1b23a3d9699c6b7 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 26 Mar 2025 11:40:24 +0100 Subject: src/{arctica-greeter,menubar}.vala: Set locale to LC_NUMERIC before using printf with floats. --- src/arctica-greeter.vala | 1 + src/menubar.vala | 1 + 2 files changed, 2 insertions(+) diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index ea1fce4..93c88e2 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -1220,6 +1220,7 @@ public class ArcticaGreeter : Object /* Initialize i18n */ Intl.setlocale (LocaleCategory.ALL, ""); + Intl.setlocale(LocaleCategory.NUMERIC, "C.UTF-8"); Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR); Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8"); Intl.textdomain (Config.GETTEXT_PACKAGE); diff --git a/src/menubar.vala b/src/menubar.vala index 63e3557..90c1b00 100644 --- a/src/menubar.vala +++ b/src/menubar.vala @@ -198,6 +198,7 @@ public class MenuBar : Gtk.MenuBar try { + Intl.setlocale(LocaleCategory.NUMERIC, "C.UTF-8"); shadow_style.load_from_data ("* { box-shadow: 0px 0px 5px 5px rgba(0.2,0.2,0.2,%f); }".printf(AGSettings.get_double (AGSettings.KEY_MENUBAR_ALPHA)), -1); } catch (Error pError) -- cgit v1.2.3