From c60519ab50b32dc282b385b3bbb2df319279f655 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 26 Jun 2005 17:51:43 +0000 Subject: 26.06.2005 --- src/config.c | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) (limited to 'src/config.c') 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 #include +#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} }; /* -- cgit v1.2.3