setenv("LC_MESSAGES", lang, 1);
r = setlocale(LC_ALL, "");
if (r == NULL) {
- r = setlocale(LC_ALL, lang);
+ r = setlocale(LC_ALL, "en_US.UTF-8");
if (r != NULL)
_DBG("*****appcore setlocale=%s\n", r);
}
static int __set_i18n(const char *domain, const char *dir)
{
char *r;
- char *lan;
if (domain == NULL) {
errno = EINVAL;
__update_region();
r = setlocale(LC_ALL, "");
- /* if locale is not set properly, try again to set as language base */
+ /* if locale is not set properly, try to set "en_US" again */
if (r == NULL) {
- lan = vconf_get_str(VCONFKEY_LANGSET);
- if (lan != NULL) {
- r = setlocale(LC_ALL, lan);
- _DBG("*****appcore setlocale=%s\n", r);
- free(lan);
- }
+ r = setlocale(LC_ALL, "en_US.UTF-8");
+ _DBG("*****appcore setlocale=%s\n", r);
}
if (r == NULL)
_ERR("appcore: setlocale() error");