Philipp Hörist pushed to branch master at gajim / gajim
Commits:
53fa412c by Philipp Hörist at 2026-08-04T22:21:10+02:00
fix: Windows: Correctly set the locale
When Gtk calls setlocale on Windows, for some unknown reason it sets LC_ALL=C.
As the Gtk init is called after we set the locale in i18n.init() the
locale is overwritten with C and thus some locale dependent functionality does
not work
Fixes #12689
- - - - -
1bc9e853 by Philipp Hörist at 2026-08-04T22:25:37+02:00
new: Main: Remove obsolete environment variable
GTK_CSD is ignored by GTK4 when we set a custom titlebar, which we do.
- - - - -
1 changed file:
- gajim/main.py
Changes:
=====================================
gajim/main.py
=====================================
@@ -141,14 +141,12 @@ def _set_env_vars() -> None:
# https://github.com/msys2/MINGW-packages/issues/24812
os.environ["GTK_A11Y"] = "none"
- if "GTK_CSD" in os.environ:
- # Respect user settings
- return
- os.environ["GTK_CSD"] = "0"
+def _init_gtk() -> None:
+ from gi.repository import Gtk
+ Gtk.disable_setlocale()
-def _init_gtk() -> None:
from gajim.gtk import exception
exception.init()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/61fa2bb04bd5b284f3194c82cdae3898fae842bb...1bc9e853f61c389812ec84dfca6ccc532b730bbe
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/61fa2bb04bd5b284f3194c82cdae3898fae842bb...1bc9e853f61c389812ec84dfca6ccc532b730bbe
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]