Mail Archives: djgpp-workers/2001/12/18/02:35:31
Hi!
regcomp() sometimes crashes when NLS characters are in use. This patch seems to fix this (though I'm not sure whether NLS characters may be a problem in other places):
--- regcomp.old Sat Jun 9 23:50:56 2001
+++ regcomp.c Mon Dec 17 23:53:16 2001
@@ -863,11 +863,12 @@
== static void ordinary(register struct parse *p, register int ch);
*/
static void
-ordinary(p, ch)
+ordinary(p, _ch)
register struct parse *p;
-register int ch;
+register int _ch;
{
register cat_t *cap = p->g->categories;
+ register int ch = (unsigned char)_ch;
if ((p->g->cflags®_ICASE) && isalpha(ch) && othercase(ch) != ch)
bothcases(p, ch);
PS: What is about promised complaints on my locale patches? ;)
--
alexander aganichev
url: http://aaganichev.narod.ru
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop AT Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
- Raw text -