[Zope-Checkins] CVS: Releases/Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src - ISO_8859_1_Splitter.c:1.11

Tim Peters tim@zope.com
Mon, 22 Jul 2002 16:46:11 -0400


[Matthew T. Kromer]
> Modified Files:
> 	ISO_8859_1_Splitter.c 
> Log Message:
> Fix vexing bug in ISO splitter -- casting a signed char to int caused the
> program to overwrite a section of the global offset table!  Changing this
> to unsigned char fixes the problem.
>
> ...
>
> -        letdig[(int)DIGITSETC[i]]=1;
> +        letdig[(unsigned char)DIGITSETC[i]]=1;

Outstanding detective work, Matt!  Take the rest of the year off <wink>.