[gnome-control-center/benzea/fix-localed-setlocal: 107/107] region: Explicitly update LC_* even when matching LANG
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/benzea/fix-localed-setlocal: 107/107] region: Explicitly update LC_* even when matching LANG
- Date: Thu, 17 Oct 2019 00:32:55 +0000 (UTC)
commit 7631faa88f98ee90b6919d59d1ea393c85279487
Author: Benjamin Berg <bberg redhat com>
Date: Mon Oct 7 18:40:43 2019 +0200
region: Explicitly update LC_* even when matching LANG
localed will not update the LC_* variables if they are not given. This
means that should the user switch the formats away from LANG and then
back, they will not be reset appropriately.
Simply always setting the variables even if the match will fix this.
panels/region/cc-region-panel.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 955d51fe2..e0604b8c3 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -1347,8 +1347,7 @@ set_localed_locale (CcRegionPanel *self)
lang_value = g_strconcat ("LANG=", self->system_language, NULL);
g_variant_builder_add (b, "s", lang_value);
- if (self->system_region != NULL &&
- g_strcmp0 (self->system_language, self->system_region) != 0) {
+ if (self->system_region != NULL) {
g_autofree gchar *time_value = NULL;
g_autofree gchar *numeric_value = NULL;
g_autofree gchar *monetary_value = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]