diff options
author | Jaeho Lee <jaeho81.lee@samsung.com> | 2013-04-29 16:23:44 +0900 |
---|---|---|
committer | Jaeho Lee <jaeho81.lee@samsung.com> | 2013-04-29 16:26:30 +0900 |
commit | 2be674f6334542db8b0bc72e957fe4ac37fa944d (patch) | |
tree | 590392235254797e7a2dbff4c45148f11406d26e | |
parent | 79fed14cee1b5934b76fc183401d46b4afe0376f (diff) | |
download | app-core-tizen_2.1.tar.gz app-core-tizen_2.1.tar.bz2 app-core-tizen_2.1.zip |
fixed region change bugsubmit/tizen_2.1/20130514.050900submit/tizen/20130517.044754accepted/tizen/20130520.100903tizen_2.1
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
-rw-r--r-- | packaging/app-core.spec | 2 | ||||
-rwxr-xr-x | src/appcore-i18n.c | 5 |
2 files changed, 6 insertions, 1 deletions
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); } } |