Make sure to fallback to original if we cant translate

SVN revision: 26461
This commit is contained in:
Stafford Mitchell Horne 2006-10-10 00:41:21 +00:00
parent ce6e698871
commit c2141f1939
1 changed files with 4 additions and 1 deletions

View File

@ -1317,7 +1317,10 @@ _intl_current_locale_setup(E_Config_Dialog_Data *cfdata)
const char *cs_trans;
cs_trans = _intl_charset_upper_get(codeset);
if (cs_trans) cfdata->cur_cs = strdup(cs_trans);
if (cs_trans == NULL)
cfdata->cur_cs = strdup(codeset);
else
cfdata->cur_cs = strdup(cs_trans);
}
if (modifier)
cfdata->cur_mod = strdup(modifier);