From 9dc3559c2693028bea4623478d5a2a562d715bfa Mon Sep 17 00:00:00 2001 From: psykose Date: Thu, 17 Oct 2024 21:27:29 +0200 Subject: [PATCH] fix locale shit --- src/main.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.vala b/src/main.vala index a2c2204..db6eb0b 100644 --- a/src/main.vala +++ b/src/main.vala @@ -1,7 +1,11 @@ int main (string[] args) { + // do it ourselves or it's broken + Gtk.disable_setlocale (); Intl.bindtextdomain (Audrey.Config.GETTEXT_PACKAGE, Audrey.Config.LOCALEDIR); Intl.bind_textdomain_codeset (Audrey.Config.GETTEXT_PACKAGE, "UTF-8"); Intl.textdomain (Audrey.Config.GETTEXT_PACKAGE); + Intl.setlocale (LocaleCategory.ALL, ""); + Intl.setlocale (LocaleCategory.NUMERIC, "C.UTF-8"); var app = new Audrey.Application (); return app.run (args);