[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src - ISO_8859_1_Splitter.c:1.6.4.5
Matthew T. Kromer
matt@zope.com
Mon, 22 Jul 2002 16:35:20 -0400
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src
In directory cvs.zope.org:/tmp/cvs-serv5447
Modified Files:
Tag: Zope-2_5-branch
ISO_8859_1_Splitter.c
Log Message:
backport of HEAD to 2.5 branch -- fix bug in ISO8859 splitter initialization
which will overwrite memory
=== Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src/ISO_8859_1_Splitter.c 1.6.4.4 => 1.6.4.5 ===
#define UNLESS(E) if(!(E))
#define UNLESS_ASSIGN(V,E) ASSIGN(V,E) UNLESS(V)
-#define UPPERCASE "ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝ"
+#define UPPERCASE "ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝß"
#define LOWERCASE "abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöùúûüýß"
#define DIGITSETC "0123456789-µ"
@@ -84,7 +84,7 @@
}
for (i=0;i<sizeof(DIGITSETC);i++) {
- letdig[(int)DIGITSETC[i]]=1;
+ letdig[(unsigned char)DIGITSETC[i]]=1;
}
}