From 35381569403e90b8d34b223f524519521bc81598 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 27 Jun 2007 09:28:22 +0000 Subject: Engines rework - LibGuess support for far east language autodetection - Support for LibRCD 0.1.9 supporting ISO-8859-1 strings - Fixing wrong encodings names returned by Enca - Engine plugins naming scheme is altered - New API functions: rccEngineGetInfo, rccEngineGetAutoCharsetByName - Most of languages are no more hardcoded, but moved to the configuration - RCD engine is added to Belarusian language (I hope it should work) - Some encoding names are fixed in configuration - Support for external libiconv - Support for libcharset - Find UI interface language from LC_MESSAGES locale - Simple compilation fix (Thanx to D. Panov) --- src/plugin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugin.c') diff --git a/src/plugin.c b/src/plugin.c index 38337fb..c53726f 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -121,13 +121,13 @@ rcc_plugin_handle rccPluginLoad(rcc_plugin_type type, const char *name) { switch (type) { case RCC_PLUGIN_TYPE_ENGINE: - pluginfn = (char*)malloc((32 + strlen(rcc_home_dir) + strlen(name))*sizeof(char)); + pluginfn = (char*)malloc((48 + strlen(rcc_home_dir) + strlen(name))*sizeof(char)); if (!pluginfn) return NULL; - sprintf(pluginfn, "%s/.rcc/engines/lib%s.so", rcc_home_dir, name); + sprintf(pluginfn, "%s/.rcc/engines/%s_engine.so", rcc_home_dir, name); res = rccLibraryOpen(pluginfn); if (!res) { - sprintf(pluginfn, LIBRCC_DATA_DIR "/engines/lib%s.so", name); + sprintf(pluginfn, LIBRCC_DATA_DIR "/engines/%s_engine.so", name); res = rccLibraryOpen(pluginfn); } free(pluginfn); @@ -156,7 +156,7 @@ rcc_plugin_handle rccPluginLoad(rcc_plugin_type type, const char *name) { rcc_engine *rccPluginEngineGetInfo(const char *name, const char *language) { rcc_plugin_handle handle; rcc_plugin_engine_info_function infofunc; - + handle = rccPluginLoad(RCC_PLUGIN_TYPE_ENGINE, name); if (!handle) return NULL; -- cgit v1.2.3