Gnus development mailing list
 help / color / mirror / Atom feed
From: Andrey Slusar <anrays@gmail.com>
Subject: Re: XEmacs hangs in rfc2047-encode-string
Date: Fri, 31 Dec 2004 21:10:28 +0200	[thread overview]
Message-ID: <864qi2e123.fsf@santinel.home.ua> (raw)
In-Reply-To: <874qi2zg0j.fsf@dod.no>

Fri, 31 Dec 2004 15:41:48 +0100, Steinar Bang wrote:

> > We got several reports like this one from people using XEmacs 21.4.16.
> > I guess it's a bug in XEmacs' RegExp handling.  Please make a full
> > XEmacs bug report and send it to the XEmacs developers.

> Ok, I've done that.

> But it would be nice if a workaround could be found in Gnus.  Even if
> it was fixed today, it'll be a while until a new xemacs works its way
> into debian testing.

  Apply the patch and recompile xemacs:
--8<---------------cut here---------------start------------->8---
Index: regex.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/regex.c,v
retrieving revision 1.25.2.10
retrieving revision 1.25.2.9
diff -u -r1.25.2.10 -r1.25.2.9
--- src/regex.c	2004/10/08 00:40:33	1.25.2.10
+++ src/regex.c	2004/09/23 03:03:43	1.25.2.9
@@ -4766,20 +4766,16 @@
 
 		/* Go through the first `min (num_regs, regs->num_regs)'
 		   registers, since that is all we initialized.  */
-		for (mcnt = 1;
-		     mcnt < MIN (num_nonshy_regs, regs->num_regs);
-		     mcnt++)
+		for (mcnt = 1; mcnt < MIN (num_regs, regs->num_regs); mcnt++)
 		  {
-		    int ireg = bufp->external_to_internal_register[mcnt];
-
-		    if (REG_UNSET (regstart[ireg]) || REG_UNSET (regend[ireg]))
+		    if (REG_UNSET (regstart[mcnt]) || REG_UNSET (regend[mcnt]))
 		      regs->start[mcnt] = regs->end[mcnt] = -1;
 		    else
 		      {
 			regs->start[mcnt]
-			  = (regoff_t) POINTER_TO_OFFSET (regstart[ireg]);
+			  = (regoff_t) POINTER_TO_OFFSET (regstart[mcnt]);
 			regs->end[mcnt]
-			  = (regoff_t) POINTER_TO_OFFSET (regend[ireg]);
+			  = (regoff_t) POINTER_TO_OFFSET (regend[mcnt]);
 		      }
 		  }
 	      } /* regs && !bufp->no_sub */
--8<---------------cut here---------------end--------------->8---

 This is fixed problems. I am added this patch to official freebsd
xemacs21-mule port.

-- 
Regards,
Andrey.




  reply	other threads:[~2004-12-31 19:10 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-03 16:55 XEmacs, Gnus and mm-coding-system priorities Aidan Kehoe
2004-12-06  2:30 ` Katsumi Yamaoka
2004-12-06 13:35   ` Aidan Kehoe
2004-12-06 15:19   ` Katsumi Yamaoka
2004-12-06 22:30   ` Katsumi Yamaoka
2004-12-07  1:03     ` Katsumi Yamaoka
2004-12-07  0:10   ` Aidan Kehoe
2004-12-07  1:04     ` Katsumi Yamaoka
2004-12-07 12:32       ` Katsumi Yamaoka
2004-12-17 12:21         ` Aidan Kehoe
2004-12-17 12:46           ` Katsumi Yamaoka
2004-12-17 16:09             ` Katsumi Yamaoka
2004-12-31  9:01         ` XEmacs hangs in rfc2047-encode-string (Was: XEmacs, Gnus and mm-coding-system priorities.) Steinar Bang
2004-12-31 11:47           ` XEmacs hangs in rfc2047-encode-string Reiner Steib
2004-12-31 14:41             ` Steinar Bang
2004-12-31 19:10               ` Andrey Slusar [this message]
2005-01-01  9:04                 ` Steinar Bang
2005-01-01 18:03                   ` Andrey Slusar
2005-01-01 19:25                     ` Steinar Bang
2005-01-01 22:05                       ` Andrey Slusar
2005-01-02  7:49                         ` Steinar Bang
2004-12-31 12:53           ` Steinar Bang
2004-12-31 13:42           ` Arnaud Giersch
2004-12-31 14:45             ` Steinar Bang
2004-12-07  1:03 ` XEmacs, Gnus and mm-coding-system priorities Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=864qi2e123.fsf@santinel.home.ua \
    --to=anrays@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).