summaryrefslogtreecommitdiffstats
path: root/src/lngconfig.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-07-12 03:55:23 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-07-12 03:55:23 +0000
commite598a2372179812389a702b78d5f8537eb6827d9 (patch)
treefad90d39ca5781d5ffdf4e9131050fe79d3e5383 /src/lngconfig.c
parent6b44784148735f594ac862abcd38c50c5d556df0 (diff)
downloadlibrcc-e598a2372179812389a702b78d5f8537eb6827d9.tar.gz
librcc-e598a2372179812389a702b78d5f8537eb6827d9.tar.bz2
librcc-e598a2372179812389a702b78d5f8537eb6827d9.tar.xz
librcc-e598a2372179812389a702b78d5f8537eb6827d9.zip
Language and Option Names
Diffstat (limited to 'src/lngconfig.c')
-rw-r--r--src/lngconfig.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lngconfig.c b/src/lngconfig.c
index 39fca76..4ac16c1 100644
--- a/src/lngconfig.c
+++ b/src/lngconfig.c
@@ -311,6 +311,11 @@ rcc_charset_id rccConfigGetCurrentCharset(rcc_language_config config, rcc_class_
charset_id = rccConfigGetLocaleCharset(config, defvalue);
if ((charset_id != 0)&&(charset_id != (rcc_charset_id)-1)) return charset_id;
+ if (cl->defvalue) {
+ charset_id = rccConfigGetCharsetByName(config, defvalue);
+ if ((charset_id != 0)&&(charset_id != (rcc_charset_id)-1)) return charset_id;
+ }
+
defcharset = cl->defcharset;
if (defcharset) {
lang = config->language->sn;