[Zope-Checkins] CVS: Zope2 - Splitter.c:1.14.28.1

Brian Lloyd brian@digicool.com
Fri, 16 Mar 2001 11:57:20 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/SearchIndex
In directory korak:/home/brian/temp/zope-23-branch/lib/python/SearchIndex

Modified Files:
      Tag: zope-2_3-branch
	Splitter.c 
Log Message:
added fix for bug 2022



--- Updated File Splitter.c in package Zope2 --
--- Splitter.c	2000/11/01 14:20:02	1.14
+++ Splitter.c	2001/03/16 16:57:20	1.14.28.1
@@ -225,11 +225,11 @@
       if ((i > 0) && (*here == '-'))
         {
 	  here++;
-	  while (isspace(*here) && (here < end)) here++;
+	  while (isspace((unsigned char) *here) && (here < end)) here++;
 	  continue;
 	}
 
-      c=tolower(*here);
+      c=tolower((unsigned char) *here);
       
       /* Check to see if this character is part of a word */
       if(isalnum((unsigned char)c) || c=='/')