summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-06-26 17:51:43 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-06-26 17:51:43 +0000
commitc60519ab50b32dc282b385b3bbb2df319279f655 (patch)
tree001c2f9653029878da1eee01d19636221a5ad268 /src/config.c
parent3aa2acb1aa6931d9a5cab87fe9bef94086e25d16 (diff)
downloadlibrcc-c60519ab50b32dc282b385b3bbb2df319279f655.tar.gz
librcc-c60519ab50b32dc282b385b3bbb2df319279f655.tar.bz2
librcc-c60519ab50b32dc282b385b3bbb2df319279f655.tar.xz
librcc-c60519ab50b32dc282b385b3bbb2df319279f655.zip
26.06.2005
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c48
1 files changed, 25 insertions, 23 deletions
diff --git a/src/config.c b/src/config.c
index 885f416..89a8bde 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1,6 +1,8 @@
#include <stdio.h>
#include <librcd.h>
+#include "config.h"
+
static rcc_charset_id rcc_autoengine_russian(rcc_engine_context ctx, char *buf, int len) {
return (int)get_russian_charset(buf,len);
}
@@ -22,73 +24,73 @@ rcc_engine rcc_russian_engine = {
};
rcc_language rcc_default_languages[] = {
-{"default", "Autodetect", {"Default", NULL} {
- &default_engine,
+{"default", "Autodetect", {"Default", NULL}, {
+ &rcc_default_engine,
NULL
}},
-{"off", "Dissable", {"Default", NULL} {
- &default_engine,
+{"off", "Dissable", {"Default", NULL}, {
+ &rcc_default_engine,
NULL
}},
-{"ru","Russian",{"Default","KOI8-R","CP1251","UTF-8","IBM866","MACCYRILLIC","ISO8859-5", NULL},{
- &default_engine,
- &russian_engine,
+{"ru","Russian", {"Default","KOI8-R","CP1251","UTF-8","IBM866","MACCYRILLIC","ISO8859-5", NULL}, {
+ &rcc_russian_engine,
+ &rcc_default_engine,
NULL
}},
-{"uk","Ukrainian",{"Default","KOI8-U","CP1251","UTF-8","IBM855","MACCYRILLIC","ISO8859-5","CP1125", NULL},{
- &default_engine,
- &russian_engine,
+{"uk","Ukrainian", {"Default","KOI8-U","CP1251","UTF-8","IBM855","MACCYRILLIC","ISO8859-5","CP1125", NULL}, {
+ &rcc_russian_engine,
+ &rcc_default_engine,
NULL
}},
{"be","Belarussian",{"Default", "UTF-8", "CP1251", "IBM866", "ISO-8859-5", "KOI8-UNI", "maccyr" "IBM855", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"bg","Bulgarian",{"Default", "UTF-8", "CP1251", "ISO-8859-5", "IBM855", "maccyr", "ECMA-113", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"cz","Czech",{"Default", "UTF-8", "ISO-8859-2", "CP1250", "IBM852", "KEYBCS2", "macce", "KOI-8_CS_2", "CORK", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"es","Estonian",{"Default", "UTF-8", "ISO-8859-4", "CP1257", "IBM775", "ISO-8859-13", "macce", "baltic", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"hr","Croatian",{"Default", "UTF-8", "CP1250", "ISO-8859-2", "IBM852", "macce", "CORK", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"hu","Hungarian",{"Default", "UTF-8", "ISO-8859-2", "CP1250", "IBM852", "macce", "CORK", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"lt","Lithuanian",{"Default", "UTF-8", "CP1257", "ISO-8859-4", "IBM775", "ISO-8859-13", "macce", "baltic", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"lv","Latvian",{"Default", "UTF-8", "CP1257", "ISO-8859-4", "IBM775", "ISO-8859-13", "macce", "baltic", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"pl","Polish",{"Default", "UTF-8", "ISO-8859-2", "CP1250", "IBM852", "macce", "ISO-8859-13", "ISO-8859-16", "baltic", "CORK", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"sk","Slovak",{"Default", "UTF-8", "CP1250", "ISO-8859-2", "IBM852", "KEYBCS2", "macce", "KOI-8_CS_2", "CORK", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"sl","Slovenian",{"Default", "UTF-8", "ISO-8859-2", "CP1250", "IBM852", "macce", "CORK", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
{"zh","Chinese",{"Default", "UTF-8", "GB2312", "GBK", "GB18030", "BIG5", NULL},{
- &default_engine,
+ &rcc_default_engine,
NULL
}},
-NULL
+{NULL}
};
/*