[gnome-keyring] daemon: Call setlocale() before completing initialization
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] daemon: Call setlocale() before completing initialization
- Date: Tue, 25 Sep 2012 14:00:33 +0000 (UTC)
commit a807039bec146aed886338065f103c3044892b2b
Author: Stef Walter <stefw gnome org>
Date: Fri Sep 21 13:10:35 2012 +0200
daemon: Call setlocale() before completing initialization
A new LANG environment variable can be received during late
initialization (from gnome-keyring-daemon --start). So call
setlocale() so that the new environment variable can take effect.
https://bugzilla.gnome.org/show_bug.cgi?id=684539
daemon/gkd-main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gkd-main.c b/daemon/gkd-main.c
index 71cb98d..84dd32d 100644
--- a/daemon/gkd-main.c
+++ b/daemon/gkd-main.c
@@ -783,6 +783,10 @@ gkr_daemon_initialize_steps (const gchar *components)
*/
if (!initialization_completed) {
+
+ /* The LANG environment variable may have changed */
+ setlocale (LC_ALL, "");
+
initialization_completed = TRUE;
if (timeout_id)
g_source_remove (timeout_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]