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