Blame SOURCES/imsettings-imsettings-reload-locale.patch

cbb3ed
diff -pruN imsettings-1.6.3.orig/utils/imsettings-reload.c imsettings-1.6.3/utils/imsettings-reload.c
cbb3ed
--- imsettings-1.6.3.orig/utils/imsettings-reload.c	2012-12-13 17:36:42.000000000 +0900
cbb3ed
+++ imsettings-1.6.3/utils/imsettings-reload.c	2014-01-22 18:12:09.000000000 +0900
cbb3ed
@@ -46,6 +46,7 @@ main(int    argc,
cbb3ed
 	};
cbb3ed
 	GError *error = NULL;
cbb3ed
 	gint retval = 0, api_version;
cbb3ed
+	gchar *locale;
cbb3ed
 
cbb3ed
 #ifdef ENABLE_NLS
cbb3ed
 	bindtextdomain (GETTEXT_PACKAGE, IMSETTINGS_LOCALEDIR);
cbb3ed
@@ -57,6 +58,9 @@ main(int    argc,
cbb3ed
 
cbb3ed
 	g_type_init();
cbb3ed
 
cbb3ed
+	setlocale(LC_ALL, "");
cbb3ed
+	locale = setlocale(LC_CTYPE, NULL);
cbb3ed
+
cbb3ed
 	g_option_context_add_main_entries(ctx, entries, GETTEXT_PACKAGE);
cbb3ed
 	if (!g_option_context_parse(ctx, &argc, &argv, &error)) {
cbb3ed
 		if (error != NULL) {
cbb3ed
@@ -73,7 +77,7 @@ main(int    argc,
cbb3ed
 		retval = 1;
cbb3ed
 		goto end;
cbb3ed
 	}
cbb3ed
-	client = imsettings_client_new(NULL);
cbb3ed
+	client = imsettings_client_new(locale);
cbb3ed
 	if (!client) {
cbb3ed
 		g_printerr(_("Unable to create a client instance.\n"));
cbb3ed
 		retval = 1;