From 2be674f6334542db8b0bc72e957fe4ac37fa944d Mon Sep 17 00:00:00 2001 From: Jaeho Lee Date: Mon, 29 Apr 2013 16:23:44 +0900 Subject: [PATCH] fixed region change bug Signed-off-by: Jaeho Lee --- packaging/app-core.spec | 2 +- src/appcore-i18n.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packaging/app-core.spec b/packaging/app-core.spec index 154e9c5..dc1799d 100644 --- a/packaging/app-core.spec +++ b/packaging/app-core.spec @@ -1,7 +1,7 @@ Name: app-core Summary: Application basic Version: 1.2 -Release: 46 +Release: 47 Group: Application Framework License: Apache License, Version 2.0 Source0: app-core-%{version}.tar.gz diff --git a/src/appcore-i18n.c b/src/appcore-i18n.c index 7998cf2..ef2c95b 100755 --- a/src/appcore-i18n.c +++ b/src/appcore-i18n.c @@ -52,6 +52,7 @@ void update_lang(void) void update_region(void) { char *region; + char *r; region = vconf_get_str(VCONFKEY_REGIONFORMAT); if (region) { @@ -66,6 +67,10 @@ void update_region(void) setenv("LC_TELEPHONE", region, 1); setenv("LC_MEASUREMENT", region, 1); setenv("LC_IDENTIFICATION", region, 1); + r = setlocale(LC_ALL, ""); + if (r == NULL) { + _DBG("*****appcore setlocale=%s\n", r); + } free(region); } } -- 2.7.4