[aseek-devel] patch to fix a non-unicode bug

From: Danil Pismenny (no email)
Date: Sat Apr 13 2002 - 14:28:51 EDT


Query words highlighting in results doesn't work for non-unicode
version. This patch fix it.

--------------------------------
diff -u aspseek-1.2.8/src/charsets.cpp aspseek-1.2.8dapi/src/charsets.cpp
--- aspseek-1.2.8/src/charsets.cpp Wed Jan 9 14:50:15 2002
+++ aspseek-1.2.8dapi/src/charsets.cpp Fri Apr 5 02:47:32 2002
@@ -933,6 +933,9 @@ int AddCharset(const char *lang, const c
                        strncpy(Charsets[i].lang, lang, 2);
                        Charsets[i].name = strdup(name);
                        Charsets[i].chars =(unsigned char*) strdup((char *)charset);
+ FillUpperString(Charsets[i].chars,Charsets[i].upper);
+ FillLowerString(Charsets[i].chars,Charsets[i].lower);
+ MakeWordRange(&Charsets[i]);
                        charsetMap.AddAliasMap(i, name);
                        return i;
                }
--------------------------------

-- 
Danil Pismenny
http://dapi.chaz.ru/







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD