From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52928 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: bug in latest gnus when previewing certain message Date: Fri, 30 May 2003 04:52:58 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=shift_jis Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054263714 17209 80.91.224.249 (30 May 2003 03:01:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 30 May 2003 03:01:54 +0000 (UTC) Cc: bugs@gnus.org, "Vladimir Volovich" Original-X-From: ding-owner+M1472@lists.math.uh.edu Fri May 30 05:01:49 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19La8n-0004SG-00 for ; Fri, 30 May 2003 05:01:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19La9r-0001l7-00; Thu, 29 May 2003 22:02:20 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19La1s-0001k5-00 for ding@lists.math.uh.edu; Thu, 29 May 2003 21:54:04 -0500 Original-Received: (qmail 50946 invoked by alias); 30 May 2003 02:54:04 -0000 Original-Received: (qmail 50941 invoked from network); 30 May 2003 02:54:04 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by sclp3.sclp.com with SMTP; 30 May 2003 02:54:04 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 19LaEh-00064v-00 for ; Fri, 30 May 2003 05:07:19 +0200 Original-To: ding@gnus.org Original-Path: localhost.localdomain!nobody Original-Newsgroups: gnus.ding Original-Lines: 43 Original-NNTP-Posting-Host: 0xc3f98210.esnxr3.ras.tele.dk Original-X-Trace: quimby.gnus.org 1054264039 23368 195.249.130.16 (30 May 2003 03:07:19 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 30 May 2003 03:07:19 GMT User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:krJiVyt7fv4hIVQVi7DUk43F2Hw= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52928 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52928 Dave Love writes: > Jesper Harder writes: > >>> "Vladimir Volovich" writes: >>> >>>> using the latest gnus from cvs, i get the following error when trying to >>>> view the attached (spam) message: >>>> >>>> Debugger entered--Lisp error: (args-out-of-range 650 650) >>>> mm-decode-coding-region(650 650 koi8-r) >>>> mail-decode-encoded-word-region(1 883) >> >> I think this change is the culprit: >> >> ,---- >> | 2003-05-02 Dave Love >> | >> | * rfc2047.el (rfc2047-q-encode-region, rfc2047-decode): Use >> | mm-with-unibyte-current-buffer. >> `---- > > I don't see how that change could cause the error above. It's some kind of bad interaction between narrowing and `mm-with-unibyte-current-buffer'. This example illustrates the effect: (with-temp-buffer (insert "From: ニシキノネット FC事業部 Content-Type: text/plain; charset=ISO-2022-JP\n\n") (article-narrow-to-head) (mm-with-unibyte-current-buffer) (buffer-string)) => "From: ニシキノネット FC事業部 Content-Type: text/plain" Note how the last part of the text has been chopped off. If you edebug `rfc2047-decode' and step through Vladimirs example, you'll see that this is also what's happening there.