Re: pick character classes
Paul Fox <pgf <at> foxharp.boston.ma.us>
2006-04-18 15:39:45 GMT
in late march, i wrote:
> i noticed this afternoon that pick doesn't honor ranges in
> character classes. it treats the class "[a-z]" as three
> characters ('a', 'z', and '-') instead of 26. so i implemented it.
i have a followon patch to the first one i did. this one fixes
an issue where a very long character-class range (128 or more
characters) causes negative indexing into the case-folding array.
i'll apply this sometime next week unless i hear otherwise.
paul
=---------------------
paul fox, pgf <at> foxharp.boston.ma.us (arlington, ma, where it's 55.2 degrees)
cvs diff: Diffing .
Index: picksbr.c
===================================================================
RCS file: /sources/nmh/nmh/uip/picksbr.c,v
retrieving revision 1.10
diff -u -u -r1.10 picksbr.c
--- picksbr.c 31 Mar 2006 15:14:49 -0000 1.10
+++ picksbr.c 18 Apr 2006 15:38:26 -0000
<at> <at> -575,7 +575,7 <at> <at>
{
register int c;
int cclcnt;
- register char *ep, *dp, *sp, *lastep = 0;
+ register unsigned char *ep, *dp, *sp, *lastep = 0;
(Continue reading)